Maximising a borderless form

S

SeanR

Hi,

I wasn't happy with the customisability of the standard Windows form,
so I decided to implement my own. Basically what I did was extend a
borderless form and add my own borders and caption bar to it so it
looks and functions like a normal bordered sizable form. However the
only thing I can't figure out is maximising. When I maximise my form,
it fills up the whole screen and covers up the Windows taskbar. I can
understand why you would ordinarily want a borderless form to do this,
but I want my borderless form to maximise like a normal bordered form.

Can anyone help me out?

- SeanR
 
S

SeanR

Hi, just thought I'd follow up my own question since I've figured out
the answer myself.

I need to manually set the MaximizedBounds of the form before it
resizes to the Screen.WorkingArea:

this.MaximizedBounds = Screen.GetWorkingArea(this);

- Sean
 

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