Click here to Skip to main content
15,921,351 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I'm building a simple application in Windows 7 With Visual Basic.NET (Framework 4.0)
And using ListView to display data.
But, I don't like current ListView theme... ( Only Items are XP Theme :( )
Please see the pictures below


My Application's ListView Theme:
Image 1

Other Application's ListView Theme: (Task Manager)
Image 2

How can I change the theme of ListView?
I need your help T^T
Posted
Updated 28-Mar-13 23:59pm
v2

VB
<DllImport("uxtheme", CharSet:=CharSet.Unicode)>
Public Shared Function SetWindowTheme(hWnd As IntPtr, SubAppName As String, SubId As String) As Int32
End Function


Usage:
VB
Call SetWindowTheme(ListView.Handle, "explorer", vbNullString)
 
Share this answer
 
v3
hi SlaneR,
we will not find any style properties in listview properties .You should create css files and apply css classes for the all controls.

Refer this link:

http://asp-net-example.blogspot.in/2009/12/listview-control-how-to-use-listview.html[^]

 
Share this answer
 
v2
Comments
SlaneR 29-Mar-13 7:54am    
This is not about CSS ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900