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

Form Maximize problem

P: n/a
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
Feb 10 '06 #1
Share this Question
Share on Google+
13 Replies


P: n/a
I had once the same problem.
Solution was to disable "autohide" feaure of windows taskbar.

PK
Feb 10 '06 #2

P: n/a
>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
Feb 10 '06 #3

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

Feb 10 '06 #4

P: n/a
It's not good solution.
There always must be better.
Feb 10 '06 #5

P: n/a
Click menu start/settings/taskbar and menu start
There is an opt. autohide taskbar.

Try to play with it.
Feb 10 '06 #6

P: n/a
> 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
Feb 10 '06 #7

P: n/a
Nik


"John" <Jo*****@hotmail.com> wrote in message
news:ds**********@ss405.t-com.hr...
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

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.
Feb 10 '06 #8

P: n/a
> 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
Feb 10 '06 #9

P: n/a

John wrote:
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


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?

Feb 10 '06 #10

P: n/a
> 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
Feb 10 '06 #11

P: n/a
oops sory,

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

Feb 10 '06 #12

P: n/a
> property is Window State. you will see maximized item in the list.

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

Thanks
Feb 10 '06 #13

P: n/a
John wrote:
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
Feb 13 '06 #14

This discussion thread is closed

Replies have been disabled for this discussion.