How to Open Internet Explorer with VB6 to a specific Web Site.??
Can anyone tell me how to open the Internet Explorer with Visual Basic 6.0?? Suppose I want to open the Google Website by Internet Explorer with the Visual Basic 6.0, how can I do that.?? Since I am very new to the VB, please guide me properly. Thanks In Advance... :cool:
Re: How to Open Internet Explorer with VB6 to a specific Web Site.??
Even I am knew to the Visual Basic. But I know how to open the Internet Explorer using the Visual Basic. All you can do use the following :
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE". This will lead you to the internet explorer. But even I don't know how to open the specific site. Hoping that I would too get the help from here..!!:rolleyes:
Re: How to Open Internet Explorer with VB6 to a specific Web Site.??
The VB code for the opening the Internet Explorer with a specific site is mentioned below :
Shell " C:\Program Files\Internet Explorer\IEXPLORE.EXE www.google.com " .
By doing this you can go to the Google.com web site. Hope that this will help you both (warehouse peon & opaper).
Re: How to Open Internet Explorer with VB6 to a specific Web Site.??
Yes, you can use the
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE desired website" in VB to open the particular page. And the advantage of the module is that it will search for the path if it is not situated in the default directory for whatever reason.
Re: How to Open Internet Explorer with VB6 to a specific Web Site.??
You can also do the following steps to open a specific site on an Internet Explorer :
VB CODE :
- dim IE as object
- set IE = CreateObject("internetexplorer.application")
- IE.visible = true
- IE.navigate "URL HERE"
Hope that this code will also redirect you to the particular page.
Re: How to Open Internet Explorer with VB6 to a specific Web Site.??
I think that the VB code mentioned by the Zecho will not give some people the results they desire if the are using cookies or it's a secure site. Launching through Shell or ShellExecute will create a new Internet Explorer Process each time you launch it. So I think that using
Shell " C:\Program Files\Internet Explorer\IEXPLORE.EXE URL "
will be the best option.