I've seen some code in other sites that distinguishes between
"maximized" and "full screen". With "full screen"
being able to cover the taskbar which is very effective indeed,
especially when you intend to run your program in a kiosk. :)
Anyway, I think I got the answer after inserting this line of code
under the form's load event:
private void Form_Load(object sender, EventArgs e)
{
//For this to work, ensure that the Form has its :
// StartPosition = Manual and WindowsState = Normal
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
this.Height = Screen.PrimaryScreen.WorkingArea.Height;
}
On May 12, 6:28 pm, CallMeLaNN <[email protected]> wrote:
> Without covering the taskbar?
> it is a normal maximize and not fullscreen.
> So whats the prob?
>
> In the form property, set the WindowsState Maximized.
>
> If you plan to set the location and size manually in code, make sure
> StartPosition is set to Manual.
>
> On May 12, 2:30 pm, Benj Nunez <[email protected]> wrote:
>
> > Hello experts,
>
> > I've been googling for tips on how to start a main form already
> > maximized without
> > covering the taskbar (no success so far). I want to do the opposite of
> > what's been
> > discussed here:
>
> >http://stackoverflow.com/questions/118130/c-why-wont-a-fullscreen-win...
>
> > Any ideas?
>
> > Thanks in advance.
>
> > Benj