如何扩展tablelayoutpanel数据长度 [英] How do I extend tablelayoutpanel data length

查看:133
本文介绍了如何扩展tablelayoutpanel数据长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TableLayoutPanel1,当我添加数据时,它会被切断。



这是我的代码。



I have a TableLayoutPanel1 and when I add the data it gets cut off.

Here is the code I have.

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





当它加载在TableLayoutPanel上时它只显示

Cameron Santana

Luis Santana 150



无论TableLayoutPanel的显示都没有显示。



图片链接



我尝试过:



找不到任何可以尝试的东西看了看看



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

推荐答案

TLP的宽度没有限制。它是一个扩展控件,可以修改布局行为或其他控件。这就是全部。



问题可能与TLP的行和列设置有关。
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.


Hello Dave



我看起来并且在设置中没有任何其他想法?
Hello Dave

I have look and looked there is nothing on the setup any other ideas?


这篇关于如何扩展tablelayoutpanel数据长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆