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
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