Input Panel

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

I've got a from that needs to be able to hide and show the mainmenu.
I've got an input panel on this form as well. When I remove the
mainmenu, the inputpanel icon is still on the form. How do I
conditionally remove that icon as well? Code below doesn't work:

private void chkShowMenu_CheckStateChanged(object sender, EventArgs
e)
{
if (this.Menu == null)
{
this.Menu = mainMenu1;
this.inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel();
}

else
{
this.Menu = null;
this.inputPanel1 = null;
}
 
Back
Top