Posted
For Exit Button: Application.Close(); |OR| Close();
For Maximize Button: WindowState = FormWindowState.Maximized;
For Minimize Button: WindowState = FormWindowState.Minimized;
and if maximize button clicked and you want to return to defualt size of the application you need this code:
WindowState = FormWindowState.Normal;
Happy Day, :D
Replied
For Closing i would reccomend Process.GetCurrentProcess().Kill();
Happy day :)
Cancel
Post
I own: Synapse X, My own, (gave my sirhurt away cus why not)
C#, JS, HTML,
-2 REP GANGÂ
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post