View Single Post
  #15 (permalink)  
Old June 21st, 2004, 07:07 PM
hatdance hatdance is offline
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mendy
 although, Phil's reply was great. I combined his reply with other stuff that I knew and I came up with something like this. And now I don't have to open the web page within my program, it can stand for itself, which is what I really want it to do.

Dim web As WebBrowser

Private Sub Form_Load()

   Set web = New WebBrowser
   Set web = CreateObject("internetexplorer.application")
   web.Navigate2 "http://webmail.juno.com/"

end sub
...
Using mendy's code:
Dim web As WebBrowser
   Set web = New WebBrowser
   Set web = CreateObject("internetexplorer.application")
   web.Navigate2 "http://webmail.juno.com/"


I get "Compile Error: Invalid use of New keyword" on the second line. Anyone know how I can fix this. I am trying to accomplish basically the same same thing as the original poster.
Thanks
Reply With Quote