?
Solved

allow popups with internet controls ocx in VB6

Posted on 2005-05-13
7
Medium Priority
?
358 Views
Last Modified: 2013-12-25
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.
0
Comment
Question by:KellyKeeton
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:edwardiii
ID: 13996649
Hi, KellyKeeton.

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?
0
 
LVL 10

Expert Comment

by:edwardiii
ID: 13996705
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:)
0
 

Author Comment

by:KellyKeeton
ID: 13997512
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?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 10

Accepted Solution

by:
edwardiii earned 1500 total points
ID: 13997854
0
 

Author Comment

by:KellyKeeton
ID: 14003412
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.
0
 

Author Comment

by:KellyKeeton
ID: 14032579
no resoultion but that is close thanks for the pointers
0
 
LVL 10

Expert Comment

by:edwardiii
ID: 14032648
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:(
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

601 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