|
-
January 12th, 2003, 08:26 PM
#1
Open an instance of IE as a popup
I want to open an instance of Internet Exporer as a popup froma VB program. The following code works well at opening Internet explorer and pointing it at an address, but this is a normal browser.
ShellExecute hwnd, "open", "http://www.justwillsplc.net/epahelp", vbNullString, vbNullString, 1
So how do i do this but using a popup instance of a browser, i.e. no address or toolbar on Internet Explorer.
Its for a webbased help system for a program.
Jas.
p.s. long time no see !! LOL
-
January 12th, 2003, 08:43 PM
#2
Hi;
I had the same scenario - we created a web based help guide for a stand alone VB app - the guide was invoked through a menu option and we used the web browser control which if I am not mistaken actually uses an API that interfaces directly with IE. Just click on 'Components' and add the object. The following line of code will display a web page from within the control (named wbrHelp):
wbrHelp.Navigate2 "http://www.canadasbestdjs.com"
You can also navigate to a file on the localhost:
wbrHelp.Navigate2 "file:///c:/yourIndexFile.htm"
Hope that helps, cheers
DA
-
January 12th, 2003, 08:53 PM
#3
I have considered that option of using a web broswer control, but adding controls to a VB app makes its distributables rather large.
I would prefer to use IE and the shell32.dll (which is already present in Windows) to accoplish creating an instance if IE fro VB.
Iam looking along the lines of changing this.,
ShellExecute hwnd, "open", "http://www.justwillsplc.net/epahelp", vbNullString, vbNullString, 1
to this
ShellExecute hwnd, "open", "http://www.justwillsplc.net/epahelp", vbNullString, vbNullString, 2
where 1 means show IE as a normal browser, I cant find any info on shell32.dll giving other possible arguments to showing the browser.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|