Dim PT4 As WinForm.Panel
PT4 = e.Form.CreateControl("PPT4", ControlTypeEnum.Panel)
PT4.Dock = 5
PT4.BackColor = Color.Transparent
SC2.Panel1.AddControl(PT4)
Dim T4 As WinForm.Label
T4 = e.Form.CreateControl("读取文本", ControlTypeEnum.Label)
T4.Dock = 5
PT4.AddControl(T4)
T4.TextAlign = ContentAlignment.TopLeft
T4.text = FileSys.ReadAllText("I:\Adobe\Photoshop_16_LS20_win64\install.txt")
T4.Font = New Font("微软雅黑", 10, FontStyle.Bold)
T4.ForeColor = Color.Red
PT4.ExtendSize = New Size(165, T4.Height)
PT4.AutoScroll = True
此主题相关图片如下:提问图片.jpg
这个是Panel里的Label文本标签,请问如何让它随文本T4.text文字多少动态增加滚动条(竖向)