Reputation: 235
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
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
Reputation: 1957
One solution is to create your own form, and drop a WebBrowser control in it.
Upvotes: 0