Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a WebBrowser ActiveX control ReadOnly?

Status
Not open for further replies.

Sadus

Programmer
Apr 21, 2003
8
US
Hi,

I'm using a WebBrowser ActiveX control in a VB.NET Windows Forms program.

Sometimes I want to let the user be able to type into the Web Browser but most of the time I want to set the WebBrowser window to "ReadOnly". It doesn't seem to have a ReadOnly property that I can find, and I've browsed through all the IHTMLDocument2 interface etc but can't seem to find what I'm looking for.

Do I just need to intercept all of the events like whatever gets fired when they click on a link? Or is there an easier solution?

I tried to place a panel on top of it with its background color set to Web/Transparent, and I was going to try to set the TopMost property of the panel whenever I wanted the W.B. to be ReadOnly... but the Panel always seems to overlap the WB even though its color is supposed to be transparent.

I did a Google search for "WebBrowser ReadOnly VB.NET" but I didn't come across anything relevant..

Thanks!!
Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top