Codejock Forums Homepage
Forum Home Forum Home > General > Code Snippets > Visual Basic Code Snippets
  New Posts New Posts RSS Feed - Skinning a WebBrowser Control's ScrollBar in VB6
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skinning a WebBrowser Control's ScrollBar in VB6

 Post Reply Post Reply
Author
Message
JasonG View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote JasonG Quote  Post ReplyReply Direct Link To This Post Topic: Skinning a WebBrowser Control's ScrollBar in VB6
    Posted: 29 July 2008 at 1:19pm
This Demo shows you how to hide the VB6 WebBrowser Control's Vertical Scrollbar, and replace it with a CJ Scrollbar so they skin will be applied to it properly. The demo was sort of thrown together in haste, but this gives you an idea.  It involves some VB Code, and Some HTML/Javascript.

This Demo also include the adding of the mousewheel support for the scrollbar.

I noticed that the Scroller arrows get skinned while the track slider doesn't get skinned, but if you load the skin control on a new form before loading the main form with the scroller (as described several times on this forum), you should have better results.

uploads/20080729_131826_ScrollbarSkinDe.zip


Run the project, and click the Command1 Button.

Product: Xtreme SuitePro (ActiveX) 12.0.1
Platform: Windows Vista/XP
Language: Visual Basic 6.0 SP6
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.