Forum Moderators: open
-----------------
Ram Munjuluri wrote:
>
> In article <71ddg0$29g$1@nw003t.infi.net>, weblinks@freyaventures.com
> says...
> > Look at the thread titled "Scroll size or control buttons" This shows how
> > to access some scrolling functions via keyboard or a VB control button. Not
> > sure what an Intellimouse is but you can apply the routine to any VB IO
> > function.
> >
> > - Mark
>
> I guess, I have to rephrase the question. I want to make the scrollbar
> invisible but make the contents on the window "scrollable".... I have
> pointers to scroll the window using the Keypresses. So, the next thing
> would be to make the scroll bar go away ?
>
> Any suggestions please ,
>
> -Ram
> ram@ivex3d.com
The function used to make scollbar invisible is depending on the web
page
with or without frames. Here is the code:
'no frame on the web page
WebBrowser.Document.body.Scroll = "no"
'with frame
WebBrowser.Document.All.Tags("FRAME").Item(i).scrolling = "no"
Also the code to scroll the window:
'no frame
Call WebBrowser.Document.frames.window.scrollto(xPosition,
yPosition)
'with frame
Call WebBrowser.Document.frames(i).window.scrollto(xPosition,
yPosition)
You can get the number of frames in the wab page:
nNumFrames = WebBrowser.Document.frames().length
Hope this will help.
-Huimin Fu
Huimin.Fu@DyatonOH.NCR.COM