ListView Windows Vista Style

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
7 posts Page 1 of 1
Contributors
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

ListView Windows Vista Style
XTechVB
this is a listview like the one windows's explorer has


the code is very simple and easy (and is not mine)

write this at the top of your class
Code: Select all
Imports System.Runtime.InteropServices
then add the main code under your Public Class
Code: Select all
<DllImport("uxtheme", CharSet:=CharSet.Unicode)> _
Public Shared Function SetWindowTheme(ByVal hWnd As IntPtr, ByVal textSubAppName As String, ByVal textSubIdList As String) As Integer
    End Function
That's it now add a list view to your program and write this code in your app _Load event
Code: Select all
SetWindowTheme(YOURLISTVIEWNAME.Handle, "explorer", Nothing)
Result:
Capture.JPG
Download as ToolBox Control

This file is hosted off-site.
You do not have the required permissions to view the files attached to this post.
Last edited by XTechVB on Thu Nov 24, 2011 5:49 pm, edited 2 times in total.
You can find me on Facebook or on Skype mihai_92b
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Aero Style ListView
Axel
aero ? Isn't this just a styled listview, since it won't be aero on windows xp
http://vagex.com/?ref=25000
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Aero Style ListView
XTechVB
Axel wrote:
aero ? Isn't this just a styled listview, since it won't be aero on windows xp
This isn't compatible with windows xp
You can find me on Facebook or on Skype mihai_92b
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Aero Style ListView
Axel
XTechVB wrote:
Axel wrote:
aero ? Isn't this just a styled listview, since it won't be aero on windows xp
Thi aint compatible with windows xp
Exactly why you shouldn't call it an aero listview
http://vagex.com/?ref=25000
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Aero Style ListView
XTechVB
Axel wrote:
XTechVB wrote:
Axel wrote:
aero ? Isn't this just a styled listview, since it won't be aero on windows xp
Thi aint compatible with windows xp
Exactly why you shouldn't call it an aero listview
ok fine
You can find me on Facebook or on Skype mihai_92b
User avatar
smartindir
Just Registered
Just Registered
Posts: 1
Joined: Sat Apr 28, 2012 9:01 am

Re: ListView Windows Vista Style
smartindir
Thank You. Very Good cooll;
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

Re: Aero Style ListView
Ffenixw0rks
Axel wrote:
XTechVB wrote:
Axel wrote:
aero ? Isn't this just a styled listview, since it won't be aero on windows xp
Thi aint compatible with windows xp
Exactly why you shouldn't call it an aero listview
Exactly why he should. Aero came in Vista so XP is not compatible but this IS Aero styled.
Image
7 posts Page 1 of 1
Return to “Tutorials”