How to write a RTF Control?

  • Thread starter Thread starter Malik Asif Joyia
  • Start date Start date
M

Malik Asif Joyia

Hello
I have to add some more functionality in the current RichTextControl. Like
MS Word i want to draw tables. and insert header and footer
Can any body guide me ..i will be very thankfull to you .

Kind Regards
Malik ASIF
 
Hi Malik
Basically what you need to do it to create you own custom control that
inherit form the RichTextBox class. You will create new project of type
"windows control "make that class inherit from
System.Windows.Forms.RichTextBox. Then make your required modification .
then in your main project you can use that control ( click the reference on
solution explorer , then add reference to your control project ). you can
also find many articles that would help on how to create your usercontrol
See for example
http://www.ondotnet.com/pub/a/dotnet/2002/03/18/customcontrols.html
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
I have to add some more functionality in the current RichTextControl. Like
MS Word i want to draw tables. and insert header and footer
Can any body guide me ..i will be very thankfull to you .
You don't need your own control here. Just to use the standard one.
Only that the advanced features like footers, headers, tables, embeded
objects, styles, etc. are not accessible with messages.
You have to "build" the rtf data and feed it to the control.
 
Back
Top