Print Page | Close Window

Skinning a WebBrowser Control's ScrollBar in VB6

Printed From: Codejock Forums
Category: General
Forum Name: Visual Basic Code Snippets
Forum Description: Visual Basic Code Snippets
URL: http://forum.codejock.com/forum_posts.asp?TID=11641
Printed Date: 04 May 2024 at 2:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinning a WebBrowser Control's ScrollBar in VB6
Posted By: JasonG
Subject: Skinning a WebBrowser Control's ScrollBar in VB6
Date 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 - 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net