Treeview with XP Style

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
 
H

Herfried K. Wagner [MVP]

* "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'.
 
D

Donovan

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
 
G

Guest

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
 
H

Herfried K. Wagner [MVP]

* 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top