I am using a WebBrowser control. I need to disable clicking or typing.
How do I do this?
To just prevent users clicking on links, I set the AllowNavigation
property to False
.
Technically, users can still click on the links, they just don't do anything. After setting this property, updating the DocumentText
property doesn't seem to work and you need to toggle the AllowNavigation
on, set the html text and then toggle off.
you can just purely disable WebBrowser controll I believe it supports enable disable function therefore you can read but you cant click or type
YouWebBrowserControllID.Enabled = false;
in other case try this
((Control)webBrowser1).Enabled = false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With