Pro VB.NET 2002/2003For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Does anybody know how to create a table in a RichTextBox? I am sure it can be done because I can copy and paste it from Word. I have looked all over for this and can't find anything.
I have been able to get the table to appear, but I still don't understand enough about the markup to make a decent table.
I add the table and place the cursor in one of the columns, but when I type it just overwrites the column and doesn't autoexpand like it does in Word.
I think it has something to do with the length of the column in relation to the characters placed in it. But, like I said, I don't know enough about RichText markup to achieve it. At this point, I am working on other aspects of the project where I wanted this feature and thought I would come back to it when I have time.
If you come up with anything, I would be very interested in hearing how you did it.
Thanks for the reply. If I figure anything out I'll definitely let you know. I've got a couple of people that may be able to help me. I'm keeping my fingers crossed.
i have the same problem. i want to add table capability to my word processor application.but i cant. could u help if u solved the problem.
i am using VB.net 2003.
I would try this. Create the table you want in Word (or any other word processor capable of outputting in .rtf format).
Then save the document as .rtf. Open it in a text-based program like Notepad, and observe the RTF formatting that creates the table-type you are after.
A note on readability:
It is commonplace to not use capitalization in chat rooms, but it is an inferior way to communicate in more professional fora. I suggest that you get in the habit of using proper capitalization and punctuation (“cant” v. “can’t”, “... application.but i ...” v. “... application. But I ...”)
Thank you for your quick replay and for the your concern. I tried to do what you said but I cant figure it out. So if you can do it please try to let me notified.
I tried to copy a table from word to my rtf file and it appears in the document. But you see the problem when the text written in the cell of a table in rtf exceeds the border of the cell.
I have the same problem.
I want to save the content of a RICHTEXTBOX INTO A DATABASE and I cant.
I've bought a lot of books trying to get it, but with any avail.
If you find the way to do it, will you please tell me how...?