ImageList VisualStyles

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

when i enable visualstyles in my c# app (vs2002) and follow the code with
application.doevents periodically my images do not show whilst using
imagelists. i have even added images to toolbars and treeviews from embedded
resources at runtime . is there any way i can force the imagelist to draw
the images or step away from imagelists all togther.

Does anybody have any ideas

Thanks
 
There should be no problem in VS2002 as Application.EnableVisualStyles does
not exist. To enable visual styles, in VS2002, you must supply a manifest
file or manifest resource and so the Imagelist bug should not affect your
app. Application.DoEvents is only necessary in VS2003, and is simply a bug
workaround.

An alternative workaround to DoEvents(), in VS2003, is to create and fill
the Imagelist in (or after) the forms load event.
 

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