FormBorderStyle

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?
 
M

Mick Doherty

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top