Opening a URL in a Frame

How would I open a URL, say "" in the "left" frame of a frameset or just open a new window if a frameset didn't exist?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Add the Microsoft Internet Controls to your project.  Then you can do:

    WebBrowser1.Navigate ""

To add this control, right-click the toolbox and select "Components..." then select it from the list...

mh149Author Commented:
That works to open a new URL in a new window.  However, it does not direct that URL into a frame.

Sorry, but the solution I gave does not open a URL in a new window. It opens the URL in a webbrowser control.  If you want to put the webbrowser control in a frame, use something like:

   Set WebBrowser1.Container = Frame1

I think here's a better way.
shell "start.exe",vbhide

paste the text into a Model:

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String,ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

and place any things you want to fire the event,try to type the text on the event:
ShellExecute 0&, vbNullString, "", vbNullString, vbNullString, vbNormalFocus


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.