Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB and ExecWB???

0 views
Skip to first unread message

Serg V. Chernets

unread,
Nov 30, 1998, 3:00:00 AM11/30/98
to
How to hide Internet Explorer's toolbar by clicking on the anchor in the
intranet applications?

Rama Krishna

unread,
Dec 1, 1998, 3:00:00 AM12/1/98
to
There are two scenarios

1. You want to use the anchor only for hiding the tool bar. In that case the
simplest solution is to have the anchor like :-
<A href="cmd:HideToolBar>Hide the Tool bar</A>
Next in the BeforeNavigate2 event you can parse the URL parameter that
is send and check if it is cmd:HideToolBar. If so you just call
WebBrowser.ToolBar = FALE. and Cancel the Navigation by setting Cancel
parameter as true.

2. The first thing that happens when the user clicks an anchor is that
BeforeNavigate2 event is fired. You can put the toolbar to false in any case
if the URL of the anchor that is clicked is in your list.

Serg V. Chernets wrote in message ...

Serg V. Chernets

unread,
Dec 1, 1998, 3:00:00 AM12/1/98
to
Thanks a lot for your attention.
But my problem is a problem of getting reference to WebBroser Control from
within Internet Explorer application. Other words I want to use
VBScript(JScript) for control appearance of the Intranet application for
restriction users access to toolbar, statusbar and etc.

I use .html page with code below for get the referece to Microsoft Internet
Controls

<object id=oSHDocVw
width=0
height=0
classid="clsid:8856f961-340a-11d0-a96b-00c04fd705a2"
VIEWASTEXT>
</object>

I can print page by ExecWB method

oSHDocVw.ExecWB 6,1

and some other functions yet, but when I use oSHDocVw.ExecWB 24,1 I see
message "This command is not supported".

Help me, please.
Thanks a lot!

Rama Krishna пишет в сообщении ...

Rama Krishna

unread,
Dec 1, 1998, 3:00:00 AM12/1/98
to
I still could not understand completely what you are upto. It seems that
you have web browser control within an HTML page inside an Internet Explorer
Object and you want to hide the tool bar of the main window. I still can't
understand why you need another web brower control in the page.
The only solution in this case is to use an ActiveX control to hide the
IE tool bar. You can add your activeX control to the page. You can access
the Web Browser object of the main window through the activeX control. I
know how to do it from Visual C++. For VB You can refer to following
knowledge base articles

http://support.microsoft.com/support/kb/articles/q181/0/75.asp?FR=0

and

http://support.microsoft.com/support/kb/articles/q172/7/63.asp

I hope this is what you want to do.

Rama krishna

0 new messages