Hi Karrar,
All the members are realy nice here, if i am not some one other will be helping you. You will get the answer what ever you ask.
In my previouse post i have shown the RTF code that needed to draw a rectangle RTF has no concern with VB or C# . Rather than code i should say RTF required to draw a rectangle.
So If you put that RTF in text box and then on some button press assing that text to richtexbox it will draw a rectanlge for example..
Add a text box and put following RTF in that textbox then
---------------------
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\ltrpar\f0\fs24\par
\trowd\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs \cellx1802\pard\intbl\ltrpar\cell\row
\pard\ltrpar\par
\par
}
-------------------------
Add a button and
On button click you write following code
richtextBox1.RTF=textBox1.text
then you will see rectangle in the richtext box
Read the RTF specification and you will learn more how to deal with different type of data and formats...
Hope this help...
|