473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1919
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

2
2162
by: sameer | last post by:
Hi, My application is using VS2003 , VB.Net with Sql server 2000. The application has an MDI environment with several MDI child forms in the main MDI form. At times , just at times due to dont...
4
1644
by: TTD | last post by:
Hi, I have a form (formA) which is maximized. On that form I have a button which opens formB in restore-mode. But when I leave formB, I don't get formA maximized on the foreground, but it's the...
1
1832
by: Brian Keanie | last post by:
Thanks for last response. Same database ...... have a form and a subform. On the subform I have a button which opens another form to give info as to input. When I return to main form and subform...
1
2630
by: Brandon | last post by:
Hello there. I'm currently working on a moderately complex Visual C# windows application that I have run into a bit of a problem on. To start things off, the application has normally been run...
4
3070
by: kaosyeti | last post by:
what's the best way to get a form to always open at a specific size. i've sized and saved the forms, changed the borders and had popup on and off all over but can't seem to get it to stay one way...
3
24342
by: jerry.ranch | last post by:
Hi I'm trying to figure out how to center forms on a page I have a form built with some tabbed pages, and I'm playing with the form properties, but it always displays top and left and not centered...
4
1749
by: Duncan | last post by:
Hi I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#, I'm just starting with a few simple examples and I've come across a problem. I've got two forms ones an MDI parent &...
2
3698
by: insomniux | last post by:
Hi, I have an Access 2000 database with one main form in which all subforms are embedded. In this form I have a timer which closes the form, detaches the linked (ODBC) tables and reopens the same...
5
3185
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
1
2326
by: neeraj | last post by:
Hi people's I developed one MDI application with one MDI form and 2 child forms, form. Border style of first child forms set as Fixed3D and Window State set as normal (like dialog Box) and...
0
7225
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,...
1
7042
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
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
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...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.