a bug in the windowState property?

  • Thread starter Thread starter rs
  • Start date Start date
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
 
Ahmed,

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

Cor
 
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,
....)?
 
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
 
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)
 
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
 
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.
 
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,

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.
 
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
 
Back
Top