tags:

views:

52

answers:

3

I do not want the text in my WebBrowser control to be selectable. How would I do this?

A: 

That is a bit of an unusual request...

You cannot control what is selected or not in the WebBrowser control, unless you want to write one for yourself. What you could do though is stretch a DIV or a transparent image directly over top of the webbrowser control, so any attempt to highlight is actually done on the topmost element, not the webbrowser control.

slugster
Is that true? I know there are two or three ways to do it in Internet Explorer. Is the WebBrowser control that different from IE?
Nosredna
+1  A: 

May be this link will answer your question. I have not tried this script. But I guess this works. http://www.dynamicdrive.com/dynamicindex9/noselect.htm

Vijay Balkawade