Click here to Skip to main content
12,251,889 members (61,614 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB6
Does anybody know how to create a table in a RichTextBox?

Column width and height will be dynamically increase?
Posted 8-Dec-10 17:12pm
Edited 8-Dec-10 17:24pm
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See here[^]. It may help.
  Permalink  
Comments
Member 11557708 9-Apr-15 7:42am
   
@Abhinav:link seems dead.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You should better check other options like grid instead. or explain why only RichTextBox is required.
  Permalink  
Comments
Marcus Kramer 9-Dec-10 8:20am
   
In the future, please post this as a comment to the question. It is not an answer and therefore shouldn't be posted as one. Cheers.
prerakpatel 9-Dec-10 8:32am
   
I'll take care of that.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

try this:
richtextbox.Text = @"<table ID=tbtest Runat="server" style=width:100%;>
            <tr>
                <td id=tdh" + i + "runat="server">" + myReader[i].ToString() + @"</td>
                <td id=tdh2 runat="server">Pkg Type</td>
                <td id=tdh3 runat="server">Description</td>
                <td id=tdh4 runat="server">Demension</td>
                <td id=tdh5 runat="server">Weight</td>
            </tr>
            <tr>
                <td id=td1 runat="server">test</td>
                <td id=td2 runat="server">test</td>
                <td id=td3 runat="server">test</td>
                <td id=td4 runat="server">test</td>
                <td id=td5 runat="server">test</td>
            </tr>
            <tr>
                <td id=td6 runat="server">test</td>
                <td id=td7 runat="server">test</td>
                <td id=td8 runat="server">test</td>
                <td id=td9 runat="server">test</td>
                <td id=tdh10 runat="server">test</td>
            </tr>
        </table>";
  Permalink  
Comments
Member 11857387 23-Jul-15 7:25am
   
Text propery not exist for RichText box

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100