Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   .NET General (http://www.xtremevbtalk.com/-net-general/)
-   -   VB 2010 - RichTextbox: how wrap and resize a table? (http://www.xtremevbtalk.com/-net-general/328621-vb-2010-richtextbox-wrap-resize-table.html)

Cambalinho_83 04-15-2017 04:36 AM

VB 2010 - RichTextbox: how wrap and resize a table?
 
heres how i insert a table:
Code:

'add a description to a procedure\funtion
    '''<summary>
    ''' Description: Inserts a Wraped Text Table
    ''' </summary>
    Public Sub InsertTable(rows As Integer, cols As Integer, width As Integer)
        Dim sbTaRtf As New System.Text.StringBuilder
        sbTaRtf.Append("{\rtf1")
        For index As Integer = 1 To rows
            sbTaRtf.Append("\trowd")
            For columns As Integer = 1 To cols
                sbTaRtf.Append("\cellx" & (width * (columns)).ToString)  'set that cell width to 1000
            Next
            sbTaRtf.Append("\intbl \cell \row")
        Next
        sbTaRtf.Append("\pard")
        sbTaRtf.Append("}")
        Me.SelectedRtf = sbTaRtf.ToString 'me it's my RichTextBox Inherited UserControl
    End Sub

from these RTF text i see 2 problems:
1 - how can word wrap the text on cell?
2 - using the mouse, how can i resize the cell table?


All times are GMT -6. The time now is 11:06 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.