KellyKeeton
asked on
allow popups with internet controls ocx in VB6
i have made a little browser for a page that i use every day for work. i need to allow popups on this little vb6 app that i created.
so i have a basic VB6 with Internet Controls ocx i can load a page just fine but need help to make a popup "popup" on the vb application.
so i have a basic VB6 with Internet Controls ocx i can load a page just fine but need help to make a popup "popup" on the vb application.
If you want to present users with a message after the WebBrowser control has navigated to your Web page, you can use a Message Box:
WebBrowser1.Navigate ("http://www.allapi.net")
Do While WebBrowser1.Busy
DoEvents
Loop
MsgBox "You have arrived at the company Web page."
However, it won't be centered over your WebBrowser display area. If centering is desired, you could add a new form to your project that displays whatever message you wish, and you could position the form as necessary. Just replace the above Message Box code with:
Form2.show
And decide if Form2 should be Modal or not:)
WebBrowser1.Navigate ("http://www.allapi.net")
Do While WebBrowser1.Busy
DoEvents
Loop
MsgBox "You have arrived at the company Web page."
However, it won't be centered over your WebBrowser display area. If centering is desired, you could add a new form to your project that displays whatever message you wish, and you could position the form as necessary. Just replace the above Message Box code with:
Form2.show
And decide if Form2 should be Modal or not:)
ASKER
ok this appears to be a spicific case
the web page is SOFront Track Web (ticket system)
its any time the java code try and open a new window it wont open. is there anythgin i need to do to make this ocx more like IE?
the web page is SOFront Track Web (ticket system)
its any time the java code try and open a new window it wont open. is there anythgin i need to do to make this ocx more like IE?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is interesting data, unfortunately still no go. i can seem to get the popup to work but then it just crashes out the webpage its starting a new session i think and closing my current loged in session.
this might be spicific enough that it requires more dev power going to leave open for a but jsut to see if anyone has any ideas.
this might be spicific enough that it requires more dev power going to leave open for a but jsut to see if anyone has any ideas.
ASKER
no resoultion but that is close thanks for the pointers
Sorry we couldn't get a solid fix. I set my WebBrowser to many sites with JavaScript, Applets, etc., but couldn't duplicate your issue:(
Are you using a WebBrower control? When I use:
WebBrowser1.Navigate ("http://www.allapi.net")
A pop-up appears as soon as I navigate to the page. So a Webbrowser control by default allows pop-ups. What functionality are you looking for?