FormBorderStyle

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have an applocation that i want to look modern. the forms border style is
set to none but i have a created bar at the top with the maximise buttons etc.

1. what code to i type in for the maximise button and the minimise button?
2. how do i make the window sizeable?

can someone help?
 
If you're keeping the form square then just turn off ControlBox and set Text
to "". Then, so long as the FormBorderStyle is set to sizable, the form will
still be sizable.

For the Maximize button use:
this.WindowState = FormWindowState.Maximized;


If you're shaping the form then maybe this example will help.
http://dotnetrix.co.uk/misc.html --> An example of a moveable/resizable
shaped form.
 
Back
Top