#1
  1. cosmos curator
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2002
    Location
    Leeds, UK
    Posts
    678
    Rep Power
    14

    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?
    R.T.F.M - Its the only way to fly...

    "No matter what you do, or how good it is, someone will always ask for more features. Or to change the colour of something, then change their minds."

    Personal:
    experience// 8 Years Web Development
    technologies// Standards-compliant, valid, & accessible (x)HTML/CSS, XML/XSL/XPath/XQuery/XUpdate, (OOP) PHP/(My)SQL, eXist/Xindice/XMLDBs
    packages// Photoshop, Illustrator, Flash/Fireworks/Director
    environment// FC2, MySQL, Lighttpd, PHP5, Mojavi/Agavi
    site// //refactored.net/ (Coming soon...)
    quote// Programming is the eternal competition between programmers who try to make apps more and more idiot proof and the universe that makes dumber idiots. So far, the universe is winning...
  2. #2
  3. Throws Rocks
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    392
    Rep Power
    14

    If I remember correctly


    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
    Two things have come out of Berkeley, Unix and LSD.
    It is uncertain which caused the other.
  4. #3
  5. dont click here
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    409
    Rep Power
    13
    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
  6. #4
  7. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    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/de...bscripttoc.asp
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Massachusetts
    Posts
    32
    Rep Power
    12

    Post


    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.
  10. #6
  11. No Profile Picture
    Sojournor of Lies
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Chicago
    Posts
    15
    Rep Power
    0
    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).

IMN logo majestic logo threadwatch logo seochat tools logo