(C#)问题? 请各位大虾们帮小菜鸟一个助吧

来源:百度知道 编辑:UC知道 时间:2024/05/10 07:02:19
private void panel_MouseClick(object sender,MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
Point p = e.Location;
if (pointList.Count > 0)
{
int i = pointList.Count - 1;
if (Math.Abs(pointList[i].X - p.X) < currentWidth && Math.Abs(pointList[i].Y - p.Y) < currentWidth)
{
pointList.RemoveAt(i);
Refresh();
return;
}
}
pointList.Add(p);
}
if (e.Button == MouseButtons.Right && pointList.Count > 0)
{
pointList.RemoveAt(pointList.Count - 1);
}
Refresh();
}
private void panel_Paint (object sender,PaintEventAr

private void comboBoxDashStartLineCap_SelectedIndexChanged(object sender,EventArgs e )
{
startLineCapIndex = comboBoxStartLineCap.SelectedIndex;
Refresh ;
}
把Refresh ;->Refresh ();

你是不是少写大括号了,你把整个文件上的代码贴来看看

通常缺少{括号或者是自定义方法后面缺少()就会报这个错误
是属于程序结构错误