Could you post how you're retrieving the text from the RichTextBox in the first place?
Can you just use a .Clear method, or try setting the Text property to the empty string?
Thanks a lot for the reply!!
I am validating the saved XML against the XSD at first.
If some invalid text string is found,its the event handler class is getting hit
which i have implemented ..its like....XmlLoaderValidationEventHandler(object sender, ValidationEventArgs e)
but i m not able to retrieve the text(error string) but able to retrieve the row number of the string in text box as i mentioned.
Now with this row number and coln number how will i be able to delete that string from the text box and save the file?
If i know the string anyways i would have set it to selectedString="";
But this is not possible for me as of now..
If its not possible for what i m looking for, atleast can i set the control(cursor) to the start of the error string once event handler is hit so that it will prompt the user to delete the string from XML file manually ??
Suggestion will be much appreciated..
thanks in advance!!
-Anupam