Forum > Coding >

Custom Control Box For Your Application (Codes) !

Posts: 5

Threads: 2

Joined: Apr, 2019

Reputation: 0

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

  • 0

Posts: 107

Threads: 10

Joined: Apr, 2019

Reputation: 1

Replied

For Closing i would reccomend Process.GetCurrentProcess().Kill();

 

Happy day :)

  • 0

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 )