By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,730 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

How to write a RTF Control?

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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...mcontrols.html
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2

P: n/a
> 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.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.