Toolbar icon images disappear when docked vertically - Bug?

M

Michael Kairys

I have a simple C# Windows Forms application with two toolbars, using the
standard .NET toolbar and imagelist classes. I want to dock one toolbar at
the top and the other at the left edge of the form.

In the designer they look fine but when I run the app the vertically-docked
bar loses all its icon images.

I've tried various settings like flat vs. normal, and I tried adding
Application.EnableVisualStyles() and Application.DoEvents() before
Application.Run(), but no difference.

Is this just a bug (hard to believe one simply can't have vertical toolbars
in .NET) or is there some setting or method I've overlooked?

Thanks,
Michael Kairys
SL Corporation
 
M

Michael Kairys

Is this just a bug (hard to believe one simply can't have vertical
toolbars
in .NET) or is there some setting or method I've overlooked?

This is a serious problem for us. Is there somewhere else to ask, or someway
else to get help?
 
H

Herfried K. Wagner [MVP]

* "Michael Kairys said:
This is a serious problem for us. Is there somewhere else to ask, or someway
else to get help?

I am able to repro this behavior (Windows XP Professional, .NET 1.1),
but I don't have an idea on how to solve it too.
 
M

Michael Kairys

I am able to repro this behavior (Windows XP Professional, .NET 1.1),
but I don't have an idea on how to solve it too.

I have been able to work around this by putting the toolbars in Panels and
giving them DockStyle.Fill.

If I give them DockStyle.Left within the Panel they become invisible - it
seems this is the bug. Should I file a bug report with MS? How do I do that?
 
H

Herfried K. Wagner [MVP]

* "Michael Kairys said:
I have been able to work around this by putting the toolbars in Panels and
giving them DockStyle.Fill.

If I give them DockStyle.Left within the Panel they become invisible - it
seems this is the bug. Should I file a bug report with MS? How do I do that?

The bug still exists in the May 2004 CTP version of VS 2005. I'll
submit a bug report.
 

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