static void Main()
{
Application.Run(new Form1());
}
private void menuItem1_Click(object sender, System.EventArgs e)
{
}
private void miDisable_Click(object sender, System.EventArgs e)
{
if(miDisable.Checked==True)
{
miDisable.Enabled=True;
miDisable.Checked=False;
}
else
{
miEdit.Enabled=False;
miDisable.Checked=True;
}
}
private void miHide_Click(object sender, System.EventArgs e)
{
if(miHide.Checked==True)
{
miEdit.Enabled=True;
miHide.Checked=False;
}
else
{
miEdit.Enabled=False;
miHide.Checked=True;
}
}
private void miMerge_Click(object sender, System.EventArgs e)
{
miEdit.MergeMenu(miHelp.CloneMenu());
miMerge.Enabled=false;
}
private void miSwitchMm_Click(object sender, System.EventArgs e)
{
this.Menu=MainMenu2;
}
private void miSwitchCm_Click(object sender, System.EventArgs e)
{
if(this.ContextMenu==contextmenu1)
{
this.ContextMenu=contextmenu2;
}
else
{
this.ContextMenu=contextmenu1;
}
}
private void miExit_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void miSwitchMm2_Click(object sender, System.EventArgs e)
{
this.Menu=mainMenu1;
}
private void miExit2_Click(object sender, System.EventArgs e)
{
this.Close();
}
}
编译得时候提示miEdit.Enabled=False中得 False有问题,请问哪里有问题,谢谢。