Form Maximize problem

J

John

Hi,

I have on form MenuBar, Toolbar, and Grid control.
Form property is set to form opens as Maximized.

Form maximizes through whole screen, but I don't see bottom part of grid,
because TaskBar (of Windows) is above grid. Why form maximizes below
Taskbar?
How to maximize form so that form is resized to Taskbar, but not further,
because bottom part of form will be below Taskbar?

I hope I explained well. Your help is appreciated.

Thanks,
Marco
 
P

PiotrKolodziej

I had once the same problem.
Solution was to disable "autohide" feaure of windows taskbar.

PK
 
J

John

I had once the same problem.
Solution was to disable "autohide" feaure of windows taskbar.

I don't know if it is good solution.
There is option Keep the Taskbar on top of other Windows, and it is
logically to be enabled, because user can switch from one program to
another.
It is not good to disable this for user.

Is there some other way to do make this work, probably there is.

If someone can give more advise to this.

Thanks
 
J

John

Addition to previous replies, is there a way to find out TaskBar Height.
Then, we could set Form_Resize = Screen.Height - Taskbar.Height

What do you think?

Thanks
 
P

PiotrKolodziej

Click menu start/settings/taskbar and menu start
There is an opt. autohide taskbar.

Try to play with it.
 
J

John

Click menu start/settings/taskbar and menu start
There is an opt. autohide taskbar.

Try to play with it.

Yes, but I don't want to change user preferences. Is user likes to have
Taskbar on top, I don't want to change it.
There is solution to show form maximized to working area and I think it is
good solution, but if user moves Taskbar or changes height, then it will not
display ok.

Thanks
 
N

Nik

John said:
Yes, but I don't want to change user preferences. Is user likes to have
Taskbar on top, I don't want to change it.
There is solution to show form maximized to working area and I think it is
good solution, but if user moves Taskbar or changes height, then it will
not display ok.

Thanks
You're looking at this the wrong way round. If the user has an autohide
task bar, they have chosen - and will expect - the taskbar to cover the edge
of maximized applications when it emerges from hiding. This is normal, it
would arguably be bad design to try to interfere with it.
 
J

John

You're looking at this the wrong way round. If the user has an autohide
task bar, they have chosen - and will expect - the taskbar to cover the
edge of maximized applications when it emerges from hiding. This is
normal, it would arguably be bad design to try to interfere with it.

Yes, but what if user has enabled option Keep Taskbar on top of the other
windows, which is default option in Windows, how will you make that form
resize ok?

Thanks
 
E

erman.olca

John said:
Yes, but what if user has enabled option Keep Taskbar on top of the other
windows, which is default option in Windows, how will you make that form
resize ok?

Thanks

hi,

switch design view and set the window start position to maximized then
disable the maximize of your form. Run it. You will see it on the
taskbar. OK?
 
J

John

switch design view and set the window start position to maximized then
disable the maximize of your form. Run it. You will see it on the
taskbar. OK?

No, I don't have window start position option Maximize. I am using VB 2005.
Can you specify exactly what properties to choose?

Thanks
 
J

John

property is Window State. you will see maximized item in the list.

I think it is not solution, please read post from beginning.

Thanks
 
M

Mark Ingram

John said:
Hi,

I have on form MenuBar, Toolbar, and Grid control.
Form property is set to form opens as Maximized.

Form maximizes through whole screen, but I don't see bottom part of grid,
because TaskBar (of Windows) is above grid. Why form maximizes below
Taskbar?
How to maximize form so that form is resized to Taskbar, but not further,
because bottom part of form will be below Taskbar?

I hope I explained well. Your help is appreciated.

Thanks,
Marco

The answer (i think) you are looking for is:

this.MaximizedBounds = SystemInformation.WorkingArea;

That tells your window how much room to take up when it is maximised.
The working area is the whole desktop minus the taskbar.

HTH
 

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