In the code you posted you are using RichTextBox which (if my memory does not betray me) does not exist in System.Windows.Forms namespace. Maybe you should provide more info on what is that control.
For the sake of posterity I must point out that this is incorrect and that
the RichTextBox class most definitely DOES reside in the
System.Windows.Forms namespace.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.