Toolbar in user control problem

G

Guest

I just finished a user control which is working fine in design mode.
However, when I run the app a toolbar contained in the control does not
display any images on the buttons. The images are displayed in design mode
and all of the obvious settings are set correctly.

Could anyone help me with this?
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?UGF1bCBL?= said:
I just finished a user control which is working fine in design mode.
However, when I run the app a toolbar contained in the control does not
display any images on the buttons. The images are displayed in design mode
and all of the obvious settings are set correctly.

Are you using Windows XP Visual Styles?

Where did you dock the toolbar?
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?UGF1bCBL?= said:
Visual styles are being used. The toolbar is docked in the top position.

If visual styles aren't used the toolbar draws the images. If visual styles
are used and the toolbar is docked in the left or right positions, the
toolbar does not have the visual styles applied but does draw the images.

Try to call 'Application.DoEvents' after calling
'Application.EnableVisualStyles'.
 
G

Guest

Not quite sure what the problem is, but an assembly manifest works to enable
the visual styles without a problem...
 
S

schneider

Try setting AutoSize=True

I seen this when Displaying Text for buttons. If there is no text is seems
to work ok.

Schneider
 

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