VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
Go Back  Xtreme Visual Basic Talk > > > VB 2010 - RichTextbox: how wrap and resize a table?


Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2017, 04:36 AM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default 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?
Reply With Quote
Reply

Tags
integer, table, cell, text, width, cols, resize, wrap, richtextbox, description, me.selectedrtf, row, sbtartf.appendpard, sbtartf.append, inherited, sbtartf.tostring, rtf, word, mouse, sbtartf.appendintbl, usercontrol, columns.tostring, inserttablerows, dim, sbtartf


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table? VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
 
VB 2010 - RichTextbox: how wrap and resize a table?
VB 2010 - RichTextbox: how wrap and resize a table?
 
-->