user1970090
user1970090

Reputation: 235

How to open an IE popup with no addressbar?

I want to add a button in my application to open a site , I want the site to be opened in POP UP (so the address can't be changed) , How can this be done ?

Upvotes: 1

Views: 821

Answers (2)

John Koerner
John Koerner

Reputation: 38077

Add a COM reference to Microsoft Internet Controls to your project.

Dim  ie As SHDocVw.InternetExplorer = new SHDocVw.InternetExplorer()
ie.Navigate("http://www.google.com")
ie.ToolBar = 0
ie.AddressBar = false
ie.Visible = true

While this works, you are stuck with what IE gives you via its COM object. If you need more control, you can always just use the webbrowser control.

Upvotes: 1

malkassem
malkassem

Reputation: 1957

One solution is to create your own form, and drop a WebBrowser control in it.

Upvotes: 0

Related Questions