473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Form Maximize problem

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
13 3717
I had once the same problem.
Solution was to disable "autohide" feaure of windows taskbar.

PK
Feb 10 '06 #2
>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
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
It's not good solution.
There always must be better.
Feb 10 '06 #5
Click menu start/settings/taskbar and menu start
There is an opt. autohide taskbar.

Try to play with it.
Feb 10 '06 #6
> 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
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
> 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

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
> 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
oops sory,

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

Feb 10 '06 #12
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: chris vettese | last post by:
On my subform I have a field in the footer that totals the value of a field. On the main form I have referenced this field. I'm using this field in a calculation on my main form. The problem...
3
by: Hans Karman | last post by:
I have a form (giving details of a person) and a subform (giving details of the person's assets). A search in the form for a particular name using the Find dialog box finds the wanted person. The...
13
by: John | last post by:
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...
4
by: Bremanand | last post by:
Hi..Am doing Retailer software using VB 6.0 with ms-access.. Actually i have many form(sales entry form,purchase entry form ,stock form, etc..) in my project which all are in MDI except Log in...
1
by: prabuinet | last post by:
hi, I added a form as a control on another form. After adding i want the embedded form to have focus. I tried all combinations but its not working.. Do any one know how to do this. ...
5
by: LamSoft | last post by:
I've got some problem on some form submit problem. In a master page, there is a form tag with the "runat=server" attribute, and a ID called "myForm". In the contentPlaceHolder under that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.