473,387 Members | 1,578 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,387 software developers and data experts.

Maximized form questions

For vb2005. At design time I set the main form's WindoState to Maximized
and I disabled the Maximize box. The user can Minimize the application
only.

When the program launches, the form is indeed Maximized. However:

1. The Maximized state of my form does not take the Windows taskbar state
into consideration. The form behaves as if the user has their taskbar set
to "autohide", even if they do not. The app extends all the way down to the
bottom of the screen, and on some machines the lower bounds of this area may
be obscured by the taskbar permanently set in the 'raised' position. Is
there a Maximize command that understands to account for the state of the
windows taskbar?

2. You can simply grab the title bar of my "Maximized" form and move it
around, as if it were a normal window that is not Maximized. Is there a way
to "lock" a Maximized window in place?

3. Double-clicking the title bar of my application performs a "restore
down", circumventing my disabled the maximize/restore button. Subsequently
double-clicking the application title bar does not "restore up" again, and
so the app is left stranded in a restore-down (shrunken) state that is a)
not desireable in the first place and b) irrecoverable unless the app is
restarted. Is there a way to disable the double-clicking of a title bar
from performing a restore down?
Mar 4 '06 #1
1 2152
1.) Screen.GetWorkingArea() get's the non taskbar working area, you could
dimension your form to this.
2.) Why don't you start it out as maximized, in the windowstate property.
If this doesn't work have you considered getting rid of the title bar? You
could always add your own minimize button and that would avoid the user
being able to move it. This is sort of an irritating behavior, but it is
your app.
This would solve item #3
3.) Otherwise, if you want to circumvent restore down, I think you
would probably need to do Sub classing, although I am curious, if you set
MaximumSize & MinimumSize properties based on the value in #1 above, maybe
it wouldn't allow this.

HTH,

Shane
"1388-2/HB" <1@1.net> wrote in message
news:Q6*******************@newssvr27.news.prodigy. net...
For vb2005. At design time I set the main form's WindoState to Maximized
and I disabled the Maximize box. The user can Minimize the application
only.

When the program launches, the form is indeed Maximized. However:

1. The Maximized state of my form does not take the Windows taskbar state
into consideration. The form behaves as if the user has their taskbar set
to "autohide", even if they do not. The app extends all the way down to
the bottom of the screen, and on some machines the lower bounds of this
area may be obscured by the taskbar permanently set in the 'raised'
position. Is there a Maximize command that understands to account for the
state of the windows taskbar?

2. You can simply grab the title bar of my "Maximized" form and move it
around, as if it were a normal window that is not Maximized. Is there a
way to "lock" a Maximized window in place?

3. Double-clicking the title bar of my application performs a "restore
down", circumventing my disabled the maximize/restore button.
Subsequently double-clicking the application title bar does not "restore
up" again, and so the app is left stranded in a restore-down (shrunken)
state that is a) not desireable in the first place and b) irrecoverable
unless the app is restarted. Is there a way to disable the
double-clicking of a title bar from performing a restore down?

Mar 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Willoughby Bridge | last post by:
How do you get a form to always open in the maximized mode (covering the whole screen). My form looks goofy when it is not maximized. If there is no way for the screen to always open maximized...
2
by: jeffgeorge | last post by:
I've been trying everything between setting a bunch of different form properties and saving the form as it's maximized and I am not able to save the form so each time it opens, it is maximized. ...
1
by: ssb | last post by:
Hello, One form in my application is the MAIN form. It is set up as "startup" form. However, I need to do the following: (1) When I double click MDE file to launch my project, the MAIN form...
2
by: developer | last post by:
I have a form with a menu on the top. This menu show another form. I want to open this second form maximized inside the parent form just below the menu of the parent form. (Like Microsoft...
2
by: Dan | last post by:
Hello, I am just now converting from the world of DOS. Making simple VB.NET apps was easier than I expected. Now I need some control over the window that the app is running in. Can a VB.NET...
1
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works...
7
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I've noticed that a form will cover the taskbar when it is maximized if its ControlBox property is set to false (even if the "Keep the taskbar on top of other windows" option is selected). You can...
3
by: =?Utf-8?B?Sm9l?= | last post by:
Can anyone tell me if this is a confimed bug and if there is a workaround: - Create an form set as an mdi container - Add a Menustrip to mdi container and set form's MainMenuStrip property to...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.