Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Which property should I use for read only purpose system.windows.forms.webbrowser control in C#.net
Posted
Updated 17-Sep-10 3:45am
v2
Comments
Roger Wright 1-Sep-10 2:51am    
It's not at all clear what you're trying to accomplish here. Can you provide some more detail about what you are trying to do, and what you have tried thus far? As far as I know, your Form has full control over the WebBrowser control it contains, and can make any property read-only by simply limiting access to it. You must have something else in mind...

1 solution

You can't. I don't know what you mean by read only, but, whatever you mean, you can't make it so you can't type into textboxes in a webpage, nor can you stop the browser from allowing navigation, although you can catch events and try to hack it to go back to where you want. If neither of these things is what you mean, please explain what you mean by a 'read only web browser'.
 
Share this answer
 
Comments
Johnny J. 17-Sep-10 9:47am    
Actually, I think you CAN disallow navigation, but I can't remember how... However: If you just want the user to SEE the webpage but not interact with it, you might be able to achieve that by positioning a transparent panel OVER the webbrowser control. That way you will be clicking the panel, not the links in the webbrowser. Just an idea...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900