Treeview with XP Style

  • Thread starter Thread starter Donovan
  • Start date Start date
D

Donovan

Hello,

I am working on a application with an Treeview and an
ImageList on my form. When I set the XP Style in a module
(Application.EnableVisualStyles() in .NET 1.1) my images
in the treeview are not visible.

Who can help me out of this problem??

Greetings,

Donovan
 
* "Donovan said:
I am working on a application with an Treeview and an
ImageList on my form. When I set the XP Style in a module
(Application.EnableVisualStyles() in .NET 1.1) my images
in the treeview are not visible.

Call 'Application.DoEvents' directly after the call to
'EnableVisualStyles'.
 
Herfried,

That is not the problem. I've tried, but it still doesn't
work.

I have the following code in my modMain.vb
---
Dim configurationAppSettings As
System.Configuration.AppSettingsReader = New
System.Configuration.AppSettingsReader
If CType(configurationAppSettings.GetValue
("XPStyle", GetType(System.String)), String) = "true" Then
Application.EnableVisualStyles()
Application.DoEvents()
End If
Application.Run(New frmMain)
---

This work fine. I have a checkbox and a treeview on my
form. The checkbox is in XPStyle, but the treeview
doesn't show any image. When i set the
property "Checkboxes" i'll get XP checkboxes in my
treeview, but no images.

Any other idea??

Donovan
 
Hello,

I have added also a ListView with 1 item and a imagelist.
I have the same problem with the listview as the
treeview. I think it's a problem with a) my icons or b)
the imagelist control...

Who can help me??

Donovan
 
* said:
I have added also a ListView with 1 item and a imagelist.
I have the same problem with the listview as the
treeview. I think it's a problem with a) my icons or b)
the imagelist control...

The ListView + images_won't_ work with Visual Styles, nevertheless, on
my Windows XP machine the _TreeView_ works with images perfectly.
 
Back
Top