長方形を描画する下のようなプログラムを作ったら
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Console;
using static System.Math;
public class Test : Form
{ ←14行目
protected override void OnPaint(PaintEventArgs tbs)
{
Graphics grfx = tbs.Graphics;
SolidBrush brush = new SolidBrush(Color.Orange); grfx.FillRectangle( brush, 95, 78, 177, 49, ); } static void Main() { Application.Run(new Test()); }
}
Form1.Dispose(bool)':オーバーライドする適切なメソッドが見つかりませんでした。
と出たのですが
ファイル名が Form1.Designer.cs となっていて、
このファイルは Form.cs で、
検索しても出てこないのですがどうしたら良いのでしょうか
そのファイルの14行目らしいです

回答1件
あなたの回答
tips
プレビュー