Dan McCoy

Dan McCoy

  • NA
  • 8
  • 0

Images in ListView display with strange black outline

Dec 3 2007 6:25 AM
Hello everybody

I have a ListView in my program to which I am adding images to some of the items.
The problem is that the image is displayed with a strange black outline. The same happens if I add images to a DataGridView.

I have read elswere that adding

Application.EnableVisualStyles();

in the Main method should solve the problem, but I've tried this and it's had no effect.

I am using Visual C# 2005 Express Edition running on XP Pro SP2.

Any suggestions as to how I can get rid of this strange dark outline?

Thanks for any help!