Groups | Blog | Home
all groups > dotnet windows forms controls > may 2008 >

dotnet windows forms controls : toolStripStatusLabel does not render correctly in statusStrip - Vi


frustratedclipboard
5/29/2008 2:17:00 AM
Hi,

I am creating some UI ideas for a scientific instrumentation product. I am
having a problem with MDI child windows that contain statusStrip which in
turn, contains a toolStripStatusLabel.

The problem is that when the child windows drop below 640x480 (or so) the
toolStripStatusLabel is not rendered and appears as a black box. Around 50%
of the child windows exhibit this behvaiour.

Other controls; toolStripDownButton, toolStripSplitButton also suffer from
this problem, whereas, toolStripProgressBar doesn't.

I am unable to repeat this behaviour on three XP SP2 machines, but the three
Vista machines (with and without SP1) I tried, all render the
toolStripStatusLabel incorrectly.

I am using VS2005 SP1, .NET 2.0 on Vista SP1.

Has anyone come across this before? Any solutions?

frustratedclipboard
5/29/2008 3:05:03 AM
A bit more information, it is the toolStripProgressBar that is causing this
issue in conjunction with Aero. It also affects other similar container
controls such as toolStrip. The problem vanishes if I disable Aero or remove
the progress bar.

[quoted text, click to view]
frustratedclipboard
5/30/2008 1:56:01 AM
I have found a workaround;

In the child form class, add

Application.DoEvents();

after the InitializeComponent(); statement

This appears to cure the problem :)


[quoted text, click to view]
AddThis Social Bookmark Button