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'.
 

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

Back
Top