Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hey,
I'm working in a windows form application which have a web browser in a user control editor control which containing an email content to give the user the ability to change the email content

but i need to make some text to be fixed (i want the user not to be able to change it)

is there any way to do this, and if yes, how can i do it please??
Posted
Comments
Sergey Alexandrovich Kryukov 11-Jun-12 19:11pm    
Not clear how can it be a problem. This is nothing but HTML...
--SA

If has nothing to do with what you use for browsing, a WebBrowser control or anything else.
Non-editable text is just the content of an HTML element which is not a control, such as <p>, <div>, <span> and the like.

—SA
 
Share this answer
 
Comments
bakinam Ahmed 21-Jun-12 9:57am    
WebBrowser control is a control to open html page in windows form application
and in my application the viewed text was editable
i was asking for how to prevent user from editing only one line of the viewd text, and i solved it
i put this line inside a div with class='fixed'
and at the keypress event, i check on the parent of the selected text, if it's a div with class=fixed --> i prevent the editing, else, the editing works
i hope it help any one has the same requirements
Sergey Alexandrovich Kryukov 29-Jun-12 21:24pm    
Understood, thank you for clarification. I just say it has nothing to do with the WebBrowser control mentioned in your question, this is just HTML.
--SA
WebBrowser control is a control to open html page in windows form application and in my application the viewed text was editable i was asking for how to prevent user from editing only one line of the viewd text, and i solved it i put this line inside a div with class='fixed' and at the keypress event, i check on the parent of the selected text, if it's a div with class=fixed --> i prevent the editing, else, the editing works i hope it help any one has the same requirements
 
Share this answer
 

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