Scroll Bars

Discussions about document viewing.
Post Reply
MarkW
Posts: 2
Joined: Fri Apr 25, 2008 10:27 am

Scroll Bars

Post by MarkW » Fri Apr 25, 2008 10:30 am

Hi
Can the scroll bars appearance be changed?
They have that really old vb grey look, and not the xp blue look.

Thanks

Mark

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Scroll Bars

Post by Loïc » Fri Apr 25, 2008 1:13 pm

Hi Mark,

What programming language are you using ?

Best regards,

Loïc

MarkW
Posts: 2
Joined: Fri Apr 25, 2008 10:27 am

Re: Scroll Bars

Post by MarkW » Sat Apr 26, 2008 9:27 am

Hi

VB6


Thanks

Mark

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Scroll Bars

Post by Loïc » Sun Apr 27, 2008 6:19 pm

Hi,

In standard, vb6 doens't support XP themes.

However, you can use the folowing method to add it:

On your Form_Initialize trigger add thes lines:

Code: Select all

On Error Resume Next
InitCommonControls
It must give it

Code: Select all

Private Sub Form_Initialize()
   On Error Resume Next
   InitCommonControls
End Sub

And add this file to your project ressources: https://gdpicture.com/ressources/support/VBXPthemes.zip (unzip the VBXPthemes.RES file)
In vb6, Right click on your project tree and select Add / Ressource File & select the VBXPthemes.RES file.

Rebuild your project and see the result...

Best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest