EnableVisualStyles question

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

Hi,

I'm using the command-line "csc" compiler with the
downloaded SDK v1.1.

For my application if I:

1. use the EnableVisualStyles() method on my app AND
2. have a StatusBar with a StatusBarPanel with its
AutoSize Property set to StatusBarPanelAutoSize.Content,

....then my toolbars do not display the bitmaps that I
loaded in as a resource...no pictures.

Any ideas to fix this without manually setting the with
of the panel?

Thanks
 
Drew said:
I'm using the command-line "csc" compiler with the
downloaded SDK v1.1.

For my application if I:

1. use the EnableVisualStyles() method on my app AND
2. have a StatusBar with a StatusBarPanel with its
AutoSize Property set to StatusBarPanelAutoSize.Content,

...then my toolbars do not display the bitmaps that I
loaded in as a resource...no pictures.

Any ideas to fix this without manually setting the with
of the panel?

Call 'Application.DoEvents' directly after the call to 'Application.EnableVisualStyles'.
 
Back
Top