By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,277 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,277 IT Pros & Developers. It's quick & easy.

Maximising a borderless form

P: n/a
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

Nov 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

On Nov 30, 3:34 pm, "SeanR" <pun...@gmail.comwrote:
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
Nov 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.