Hi,
I have a listview on Windows Form, which has groups and 2 columns. First column should show up image and other one is for the text. The listview is set to View = Tile and ImageList is supplied to LargeImageList property.
Now, when i run the application in Windows XP mode the Image doesn't show up where as when the same application when runned on Windows 7, the image shows up in the list.
Application already has code to EnableVisualStyle, please see below.
if (Application.RenderWithVisualStyles == false)
{
var listView1 = new List<listviewitem>();
Application.EnableVisualStyles();
if (Application.RenderWithVisualStyles)
Application.DoEvents();
}
When this code is executed in Windows XP, the inside look doesn't execute
DoEvent()
.
Secondly, even if forcefully executed
DoEvents()
, still the image doesn't show up in Windows XP.
If anybody could shed some light on this and help me resolve it...
Thank You,
Rachna
[Edit]Code block added[/Edit]