Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a TableLayoutPanel1 and when I add the data it gets cut off.

Here is the code I have.

VB
Public Sub addBracket83()

B8(12) = "Cameron Santana"
PS38(12) = "120"
B8(13) = "LuisSantana"
PS38(13) = "150"

        tb1(0).Text = B8(12) & " " & PS38(12)
        tb2(0).Text = H8(12)
        tb3(0).Text = B8(13) & " " & PS38(13)
        tb4(0).Text = H8(13)

        p1(0).Controls.Add(tb1(0))
        p2(0).Controls.Add(tb2(0))
        p3(0).Controls.Add(tb3(0))
        p4(0).Controls.Add(tb4(0))

        TableLayoutPanel7.Controls.Clear()

        TableLayoutPanel7.Controls.Add(p2(0), 0, 0)
        TableLayoutPanel7.Controls.Add(p1(0), 0, 0)
        TableLayoutPanel7.Controls.Add(p4(0), 0, 1)
        TableLayoutPanel7.Controls.Add(p3(0), 0, 1)

End Sub


when it loads on the TableLayoutPanel it only shows
Cameron Santana
Luis Santana 150

No matter the with of the TableLayoutPanel it does not show.

Image Link

What I have tried:

Can not find anything to try I have looked and looked
Posted
Updated 11-Apr-18 13:08pm
v2

There's no limit to the width of the TLP. It's an extension control that modifies the layout behavior or other controls. That's all it does.

The problem probably has to do with the rows and columns setup of the TLP.
 
Share this answer
 
Hello Dave

I have look and looked there is nothing on the setup any other ideas?
 
Share this answer
 
Comments
Maciej Los 12-Apr-18 2:42am    
This is not an answer. Please, delete it to avoid down-voting. To post comment, use "Have a Question or Comment" widget.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900