Hi again guys.
I have added a menu strip to my app and have a simple "File" menu however; in that file menu u have a Close option like you normally would but what is the code so that when i click close it closes the program?
In VB it was Me.Close (where Me refered to the form)
Thanks
Loading
Subhendu DePosted Dec 10, 2010, 2:41 AM
Satyapriya NayakPosted Dec 10, 2010, 5:54 AM
Me.close
End
Application.exit
In C#
this.Close();
Application.Exit();
CrishPosted Dec 10, 2010, 5:34 AM
To close your form just write this below code.
form1.Close()
otherwise....
me.close()
Suthish NairPosted Dec 10, 2010, 2:50 AM
Because MenuStrip is an Windows control.
John BurnsPosted Dec 10, 2010, 2:48 AM