Click here to Skip to main content
Rate this: bad
good
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 18:12pm
Edited 8-Dec-10 18:24pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

See here[^]. It may help.
  Permalink  
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 at 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 at 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  

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



Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2015
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