Solved

Opening an Intranet Page from VB

Posted on 2003-12-09
4
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

740 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