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

a bug in the windowState property?

rs
Hi guys,

I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I disabled
the Maximize button.

When I run the program, the main form covers the taskbar. however, if I
enable the Maximize button (the rest of the code and the properties are the
same), it fits nice just above the taskbar.

anyone hear about this before?

Ahmed
Nov 21 '05 #1
13 3755
rs
The work around I found is to set the maximizebox to false in the load event
"rs" <aa@d.com> wrote in message news:oq********************@rogers.com...
Hi guys,

I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I
disabled the Maximize button.

When I run the program, the main form covers the taskbar. however, if I
enable the Maximize button (the rest of the code and the properties are
the same), it fits nice just above the taskbar.

anyone hear about this before?

Ahmed

Nov 21 '05 #2
Ahmed,

I can not simulate your problem, did you do it with a complete new project?

Cor
Nov 21 '05 #3
"rs" <aa@d.com> schrieb:
I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I
disabled the Maximize button.

When I run the program, the main form covers the taskbar.


Can you post your taskbar settings (auto-hiding, always in the foreground,
....)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
rs
Yes,
Create new project
add a status bar to the form
set the windowstate to maximized
set the maximizebox to false
run the application

This time I had the taskbar covering the status bar.

next

try enabling the maximizebox. it will fit nice and the statusbar will be
just above the taskbar

Ahmed
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Ahmed,

I can not simulate your problem, did you do it with a complete new
project?

Cor

Nov 21 '05 #5
rs
I am using windows XP Pro OS with SP2

Task bar appearance:

Lock the taskbar (unchecked)
Auto-hide (unchecked)
keep the task bar on top of other windows (checked)
Groop similar taskbar buttons (uncheck)
show quick launch (checked)

Show the clock (checked0
Hide inactive icons (checked)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"rs" <aa@d.com> schrieb:
I am creating an application in the VB.NET (VS2003). I want the form to
be maximized all the time. I set the windowState to "Maximized" and I
disabled the Maximize button.

When I run the program, the main form covers the taskbar.


Can you post your taskbar settings (auto-hiding, always in the foreground,
...)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
Ahmed,

I still see the statusbar, not that I don't believe you however I cannot
simulate it).

What Net version are you using?

Cor
Nov 21 '05 #7
rs
v1.1.4322

I also tried with windows 2000. same result

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OB**************@TK2MSFTNGP14.phx.gbl...
Ahmed,

I still see the statusbar, not that I don't believe you however I cannot
simulate it).

What Net version are you using?

Cor

Nov 21 '05 #8
rs
Also try minimizing the form then restore it after you run it.

"rs" <aa@d.com> wrote in message news:Db********************@rogers.com...
v1.1.4322

I also tried with windows 2000. same result

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OB**************@TK2MSFTNGP14.phx.gbl...
Ahmed,

I still see the statusbar, not that I don't believe you however I cannot
simulate it).

What Net version are you using?

Cor


Nov 21 '05 #9
"rs" <aa@d.com> schrieb:
I am using windows XP Pro OS with SP2

Task bar appearance:

Lock the taskbar (unchecked)
Auto-hide (unchecked)
keep the task bar on top of other windows (checked)
Groop similar taskbar buttons (uncheck)
show quick launch (checked)

Show the clock (checked0
Hide inactive icons (checked)


Same settings (Windows XP Professional SP2, German), but I am not able to
repro that. In other words, the form does not cover the taskbar when its
window state is set to maximized and the maximize button is disabled.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #10
Ahmed,

I did, do you as well have all SP's loaded especially the Net 1.1 one?

http://msdn.microsoft.com/netframewo...tent11sp1.aspx

I think I cannot help you anymore because I don't have the behaviour
although I tried it with a new project exactly as you did.

Sorry

Cor
Nov 21 '05 #11
rs
Thanks Cor, I appreciate it. I am not sure if have all the updates. I will
try doing the updates and then check

Ahmed
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl...
Ahmed,

I did, do you as well have all SP's loaded especially the Net 1.1 one?

http://msdn.microsoft.com/netframewo...tent11sp1.aspx

I think I cannot help you anymore because I don't have the behaviour
although I tried it with a new project exactly as you did.

Sorry

Cor

Nov 21 '05 #12
Cor,

This appears to be a bug in Windows 2000. I have seen non-.NET software do
this same thing with no discernable pattern. Sometimes the bottom of a
Maximized application window sits behind the task bar, sometimes in front,
and occasionally, correctly on top of it. To reproduce, set your task bar
to "Always on Top". I don't know if XP and 2003 exhibit the same behavior.

Mike Ober.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl...
Ahmed,

I did, do you as well have all SP's loaded especially the Net 1.1 one?

http://msdn.microsoft.com/netframewo...tent11sp1.aspx
I think I cannot help you anymore because I don't have the behaviour
although I tried it with a new project exactly as you did.

Sorry

Cor


Nov 21 '05 #13
rs
Hi Mike,

It does. I am using windows XP Pro. I also tried it on Win2k (work computer)
and XP Home (on a toshiba laptop). same problem.

Ahmed
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message
news:E9*****************@newsread1.news.pas.earthl ink.net...
Cor,

This appears to be a bug in Windows 2000. I have seen non-.NET software
do
this same thing with no discernable pattern. Sometimes the bottom of a
Maximized application window sits behind the task bar, sometimes in front,
and occasionally, correctly on top of it. To reproduce, set your task bar
to "Always on Top". I don't know if XP and 2003 exhibit the same
behavior.

Mike Ober.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl...
Ahmed,

I did, do you as well have all SP's loaded especially the Net 1.1 one?

http://msdn.microsoft.com/netframewo...tent11sp1.aspx

I think I cannot help you anymore because I don't have the behaviour
although I tried it with a new project exactly as you did.

Sorry

Cor


Nov 21 '05 #14

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

Similar topics

1
by: Jan H | last post by:
Background: I am a newbe trying to store the state of an Internet Explorer Application with the use of win32.com and python. I use python 2.3. Problem 1: The state is accessible, but not the...
0
by: Steve McLellan | last post by:
Hi, Is there any problem programatically changing an MDI child form's WindowState fom Minimized to Maximized in one step? Setting to Maximized doesn't seem to do anything (setting it to Normal...
2
by: Adam Godley | last post by:
Hi I have a MainContainer form, and a Picker form (which is NOT an MDIChild). What I need to do is when the MainContainer is minimized, the same happens to the Picker form: basically, the...
0
by: Max | last post by:
Hello, I'm experiencing some problems when I run a windows forms application with the WindowState set to Maximized on a computer with the DPI settings set to Large size (120 DPI) under The...
0
by: James Ramaley | last post by:
I have a VB.NET user control which pops up a window (a form object) when clicked. The problem is that when the parent form of my user control is maximized, the popup is also maximized. It seems...
2
by: Terry Olsen | last post by:
Using the below code, If I use Me.WindowState=Minimized the program runs fine, but you have the taskbar showing the program running. If I use Me.Hide instead, the program immediately exits. If...
4
by: Pohihihi | last post by:
I have tried putting the following line in almost every possible place but it does not work. this.WindowState = FormWindowState.Maximized; This just do not work. How to maximize form window if...
0
by: Magnus Bergh | last post by:
I am trying to use the feature in VS 2005 to use user application settings and bind them to form properties. Got it working well with form location and size. However I am trying to do the same...
4
by: mac | last post by:
Brand Newbie Alert! I am working through the "Build a Program Now!" book by Microsoft Press. The last chapter has a little app that should stay in the system tray when the user clicks on the 'X'...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
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...

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.