Toolbar in user control problem

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
* =?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?
 
* =?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'.
 
Not quite sure what the problem is, but an assembly manifest works to enable
the visual styles without a problem...
 
Try setting AutoSize=True

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

Schneider
 
Back
Top