New issue in VS2005/.NET 2.0 with visual styles...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

there is a new issue for the visual styles in .NET 2.0 in an ImageList added
to a ListView.

I have a project converted from VS2003 .net 1.1 to VS2005 .net 2.0. Under
..NET 1.1 every thing worked fine. Icons which were loaded into the ImageList
did appear in the ListView. Application.EnableVisualStyles is set in Main as
well as Application.DoEvents which is not required any more for .NET 2.0
(but makes here no difference anyway).

Now (under VS2005 .NET 2.0) with visual styles enabled, the icons don't
appear. When disabling visual styles the icons are shown but some with black
border, since alpha channel is not handled without enabled visual styles.

The strange thing is, when I setup an other project from this large solution
as the startup project and reference the library which generates the
ListView/ImageList in it and create an instance of the form generating code,
the icons are shown. I checked already the project settings but can't find
anything wrong with it.

Has anybody had this effect to and can provide a workaround?

Regards,

Diana


.



Relevant Pages

  • ImageList in einer ListView unter .net 2.0, Icons nicht sichtbar
    ... die dann in der ListView erscheinen sollen. ... Ohne Visual Styles ... die Nutzung von Visual Styles klappt es auch noch wie gewünscht. ... dann erscheinen die Icons nicht. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • ImageList in a ListView under .net 2.0, Icons dont appear...
    ... a ListView which contains an ImageList where large Icons has been assigned ... Visual Styles are enabled, the Icons DONT appear. ... Diana ...
    (microsoft.public.dotnet.languages.csharp)
  • Listview left to right layout
    ... Could someone please remind me how do we setup a ... Listview to shows icons that go from left to right. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: multi folder view - does this exist?
    ... Personally I would never bother with putting it in an OCX, ... Adding icons to a listview is a doddle: Add a image list control to the same ... Code: Set LV.SmallIcons = ImageListName ...
    (microsoft.public.vb.general.discussion)
  • Re: Alpha icons in listbox
    ... TreeView is similar (but you'll need to respond to different ... Override ListView with your own custom class. ... image converts the icon to a bitmap, losing the alpha in the process. ... > I have an ImageList loaded with 32-bit Alpha Icons. ...
    (microsoft.public.dotnet.framework.windowsforms)