LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X Web Browser... vertical scroll bar

Can anyone figure out how to hide the vertical scroll bar after putting a
Microsoft Web Browser component in an Active X container? (p.s. It looks
like it's not there at first... but, as soon as you run the VI it appears!)

Thanks,
Bill
0 Kudos
Message 1 of 3
(7,239 Views)
Bill,

The bar appears as soon as the contents don't fit the container anymore.

If your displaying a html file of your own, make the body tag like this:

< body scroll="no">

This will remove the scrollbar.

I'm not sore if it is possible to remove the scrollbar in the container for
every page you load. The scrollbar is a property of the page, not of the
container!

If you need it for any document, take a look at the Document property.
Convert it to a MSHTML.DispHTMLDocument, and use the ExecCommand method.
This might be a way to hide the scrollbar. Close the ref!

Regards,

Wiebe.


"Bill" wrote in message
news:ukrn4k5642uf27@corp.supernews.com...
> Can anyone figure out how to hide the vertical scroll bar after putting a
> Microsoft We
b Browser component in an Active X container? (p.s. It looks
> like it's not there at first... but, as soon as you run the VI it
appears!)
>
> Thanks,
> Bill
>
>

Message Edited by Support on 04-05-2005 03:28 PM

0 Kudos
Message 2 of 3
(7,239 Views)
I know I am replying to an old post, but I was looking for help on this and later found a solution myself.
Not "clean" per say, but... it gets rid of that annoying bar.

Make a local HTML file containing only info for a frameset containing one frame.

< frameset cols="*" framespacing="0" frameborder="NO" border="0">
< frame src="PLACE THE URL HERE" name="mainFrame" scrolling="no">
< /frameset>

where you see 'PLACE THE URL HERE' you can type any old url.

Now, instead of using the URL of the page to be displayed, type the path to the local file.
You can use the current VIs path, stripped, converted to string and concatenated with the forementioned HTML files name.

Works, and YES, it can be compiled if you use the VIs path as a reference and include the HTML file in your distribution. (That can be included in the installer)

Message Edited by Support on 04-05-2005 03:28 PM

0 Kudos
Message 3 of 3
(7,191 Views)