VS2008 Taskbar is hidden when WindowState = Maximized and MaximizeBox= False

S

stumorgan

This is ridiculously annoying... I want to my form to be maximized
when it loads, and I want the maximize box to be disabled. However
when I set WindowState = Maximized and MaximizeBox = False, the form
expands to the entire size of my screen, covering the taskbar. If I
set MaximizeBox = True it correctly maximizes to the working area
(i.e. the entire screen except for the taskbar). Why does this
happen, and how can I fix it? I'm using VS 2008. Thanks in advance.
 
M

Marc Gravell

That is a consequence of having ControlBox = false, or FormBorderStyle =
None.

So change one of those ;-p

Marc
 
S

stumorgan

That is a consequence of having ControlBox = false, or FormBorderStyle =
None.

So change one of those ;-p

Marc

It's not, because I have ControlBox = True and FormBorderStyle =
FixedDialog. I want it to show the control box and allow minimizing
and closing of the window, I just don't want to allow maximizing/
demaximizing. It seems like such a standard thing to want to have, it
would be ludicrous if it weren't possible.
 

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