Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can I use Visual C++ *.lib into C#? Pin
S. Senthil Kumar1-Sep-05 23:37
S. Senthil Kumar1-Sep-05 23:37 
AnswerRe: Can I use Visual C++ *.lib into C#? Pin
Mohamad Al Husseiny2-Sep-05 3:03
Mohamad Al Husseiny2-Sep-05 3:03 
QuestionUrgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77711-Sep-05 18:50
AB77711-Sep-05 18:50 
AnswerRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Christian Graus1-Sep-05 18:56
protectorChristian Graus1-Sep-05 18:56 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77711-Sep-05 22:00
AB77711-Sep-05 22:00 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Christian Graus2-Sep-05 12:08
protectorChristian Graus2-Sep-05 12:08 
GeneralRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
AB77712-Sep-05 22:13
AB77712-Sep-05 22:13 
NewsRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Mohamad Al Husseiny2-Sep-05 13:59
Mohamad Al Husseiny2-Sep-05 13:59 
you can insert table in the same way i told you in draw rectangle or if you want more elegant way you must deal with RTF syntax and i think this way Ms word work -Not sure- RichTextBox have Rtf Property which you can set to rtf for example the following code will draw table with one row and three cells
{\rtf1\fbidis\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\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 \cellx2952\clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs \cellx5904\clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs \cellx8856\pard\intbl\ltrpar\lang3073\f0\fs24 Cell 1\cell Cell 2\cell Cell 3\cell\row
\pard\ltrpar\fi-108 
\par }

this things you see are rtf syntax of the table
for its Specificationlook at Rich Text Format (RTF) Specification, version 1.6[^]
to see this things in action create new appliction put rRichTextBox and textbox or hardcoded this syntax in string variable in somewher in your application write
<br />
richTextBox1.Rtf=textBox1.Text;<br />

or richTextBox1.Rtf=yourStringVariable;
this will draw the table
i hope this help you but i think that if you make your application automate MS-Word may it will be easier

NOTE SORRY FOR THE WIDTH OF TEXT BUT I DIDN"T NOW HOW TO CONFIGURE IT

MCAD

-- modified at 20:05 Friday 2nd September, 2005
AnswerRe: Urgent!!!!! Drawing Rectanlges on RichTextBox Pin
Mohamad Al Husseiny2-Sep-05 13:35
Mohamad Al Husseiny2-Sep-05 13:35 
QuestionHow 2 Change Screen Resolution Of Multi Monitors! Pin
majidbhutta1-Sep-05 17:20
majidbhutta1-Sep-05 17:20 
AnswerRe: How 2 Change Screen Resolution Of Multi Monitors! Pin
Dario Solera1-Sep-05 21:44
Dario Solera1-Sep-05 21:44 
QuestionHow to open an Excel File using C# Application. Pin
pubududilena1-Sep-05 16:48
pubududilena1-Sep-05 16:48 
AnswerRe: How to open an Excel File using C# Application. Pin
Robert Rohde1-Sep-05 20:00
Robert Rohde1-Sep-05 20:00 
QuestionHow can I darg-drop item to a WebBrowser control ? Pin
Member 19785851-Sep-05 16:03
Member 19785851-Sep-05 16:03 
QuestionVirtual Dispatching Pin
mpastchenko1-Sep-05 15:15
mpastchenko1-Sep-05 15:15 
AnswerRe: Virtual Dispatching Pin
leppie1-Sep-05 18:07
leppie1-Sep-05 18:07 
QuestionDeserialize - comments? Pin
peterchen1-Sep-05 13:34
peterchen1-Sep-05 13:34 
AnswerRe: Deserialize - comments? Pin
leppie1-Sep-05 14:14
leppie1-Sep-05 14:14 
GeneralRe: Deserialize - comments? Pin
peterchen1-Sep-05 20:30
peterchen1-Sep-05 20:30 
GeneralRe: Deserialize - comments? Pin
Mathew Hall2-Sep-05 0:43
Mathew Hall2-Sep-05 0:43 
QuestionC#/.NET coding standards: private members Pin
peterchen1-Sep-05 13:11
peterchen1-Sep-05 13:11 
AnswerRe: C#/.NET coding standards: private members Pin
Christian Graus1-Sep-05 13:58
protectorChristian Graus1-Sep-05 13:58 
GeneralRe: C#/.NET coding standards: private members Pin
Mathew Hall2-Sep-05 1:03
Mathew Hall2-Sep-05 1:03 
GeneralRe: C#/.NET coding standards: private members Pin
Christian Graus4-Sep-05 10:23
protectorChristian Graus4-Sep-05 10:23 
AnswerRe: C#/.NET coding standards: private members Pin
Mathew Hall2-Sep-05 1:07
Mathew Hall2-Sep-05 1:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.