Helpful Information
 
 
Category: Visual Basic Programming
PopUps from VB in IE

Can VB open popup windows like javascript in IE?

Also, is there anyway to control the browser window in IE using VB, such as removing the addressbar or altering the window so it becomes changes to fullscreen mode?

My VB days were over a long while ago, but if I recall correctly you could make a call to the ShellExecute function and open an instance of MSIE. Check http://planetsourcecode.com

hmm i usta do all that stuff to AOL back in the day with Vb.. i suggest goto the API and look through the calls, you simply need to get the handle of the object u want to remove and close the handle.

I usta use this program IVY Spy to see if i caught the correct Handle. you can roll over and component on the screen and it gives you all the information on it.


To open the browser you can just call the command line "start URL"

i know in 2000 and XP it opens a browser

Are you sure you mean VB or VBScript?

I am sure that you can do many of the things with VBScript that you do with Javascript but it only works in IE.

You can find a reference to it on the MSDN site, or use the following link:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vbscripttoc.asp

I think you want something like this:

Call Shell("C:\Program Files\Internet Explorer\iexplore www.deepcode.net", vbNormalFocus)

This will make it popup the website www.deepcode.net in its normal viewing window (not making it maximized unless thats your normal setting) and focused on, meaning popped up in your face. try vbNormalNoFocus for a pop-under ad. :) If you have any other problems, feel free to ask.

Your question is a little ambiguous so it may be difficult getting the right answer. Some people suspect you want to exec windows explorer with a popup from a visual basic project but I suspect you actually mean vbscript within html code (instead of javascript).










privacy (GDPR)