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.
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Richard Steele" <Ri***********@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004