a bug in the windowState property?

R

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
 
C

Cor Ligthert

Ahmed,

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

Cor
 
H

Herfried K. Wagner [MVP]

rs said:
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,
....)?
 
R

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
 
R

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)
 
C

Cor Ligthert

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
 
H

Herfried K. Wagner [MVP]

rs said:
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.
 
R

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
 
M

Michael D. Ober

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.
 
R

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top