Going crazy trying to make a form full-screen

  • Thread starter Thread starter Elp
  • Start date Start date
E

Elp

Hi,

I'd like to display the main form of my application full-screen on demand.
I've looked in google groups and found several topics related to this
problem, the solution being to set the form's FormBorderStyle to none and
its WindowState to maximised.

I've tried that on a very simple form with just one menu and some buttons
and it worked fine. However, when i do that on my main form, the task bar is
not hidden! I've also tried to set the TopMost property to true as well as
the TopLevel property... no changes. I wonder why this works with a simple
form and not with my main form (which contains a status bar, tabs, web
browser controls...).

Any idea to lead my on the right track? Maybe an alternative solution to
display a form full-screen?

Thanks
 
Elp said:
I've tried that on a very simple form with just one menu and some buttons
and it worked fine. However, when i do that on my main form, the task bar is
not hidden!

Found the problem.... My main form was already maximized when i tried to
switch to full screen mode. As a result, setting its WindowState to
Maximised did not have any effect. I have to set it first to normal and then
to Maximized again... This produces very annoying flickering. So i'm still
looking for a better solution here.

And i went into another problem when the following sequence happens:
- form displayed maximized (but not full-screen)
- switch to full-screen mode
- switch back to maximized (not full-screen) mode: now if i click the
"Maximize" button on the control box of the form in order to "de-maximize"
the form, the form has a bigger size than the size of the screen and its
status bar is hence hidden behind the task bar. That's very annying. This
means that once i've displayed the form full-screen at least once, i'm stuck
using it either full-screen or maximized but there's no way to display it as
a small window as the resizing handle is hidden behind the task bar! Any
suggestions to get rid of this problem are more than welcome.
 
Back
Top