Solved

Opening an Intranet Page from VB

Posted on 2003-12-09
4
304 Views
Last Modified: 2010-05-03
We have Intranet pages that relate to a VB 6 progrram I am writing.  I need to be able to call up the Intranet page, but not allow them to call up other pages after the page has been called up.  Is there a way to call up IE but disable and hide the address bar?  BTW, this is probably more urgent than difficult, and thanks in advance for any help.

DM
0
Comment
Question by:dmmorse
4 Comments
 
LVL 1

Expert Comment

by:Lycaon
ID: 9903971
dmmorse,

You might be able to do this by adding the Microsoft Internet Controls (shdocvw.dll) to your project, and placing one on a form, sizing it as you see fit.  Alt-T or right click the component bar, then choose components.  Scroll down to Microsoft Internet Controls and check the box)

Private Sub Form_Load()
WebBrowser1.Navigate "http://localhost/default.asp" ' Choose whatever URL you want.
End Sub

That's all there is to it.  By default, the control does not have an address, link, or status bar.  Give it a try and see if it's something that fits your needs.

James
0
 
LVL 14

Accepted Solution

by:
aelatik earned 500 total points
ID: 9905120
This will do it for you :

Private Sub Form_Load()
Dim IE As Object
Set IE = CreateObject("internetexplorer.application")
    IE.navigate "http://www.google.com"
    IE.Visible = True
    IE.addressbar = False
    IE.toolbar = False
    While IE.busy: DoEvents: Wend
End Sub
0
 

Author Comment

by:dmmorse
ID: 9905872
I couldn;'t get the first answer to work.  It was probably correct, but I must have been doing something wrong, so I tried the second solution and it was very slick.  Thanks for all your help
DM
0
 
LVL 5

Expert Comment

by:mccainz2
ID: 9908563
that is an extremely SLICK answer... Had no idea that was so easy!!!
Adding this one to my arsenal. Good Job aelatik...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now