【发布时间】:2019-05-31 03:59:40
【问题描述】:
当其中一个自动换行时,如何使文本框一起调整大小。我正在使用边框,我需要将 texboxes 设置为相同的大小,以便边框正确排列。我正在使用 Active Reports 7 并有一个子报表,其中包含多个水平对齐的文本框控件。像这样。
[Textbox1 ][Textbox2 ][Textbox3 ][Textbox4 ]
当 textbox1 换行时,我会得到这样的结果
[Textbox1....][Textbox2 ][Textbox3 ][Textbox4 ]
[..2nd line. ]
我尝试在格式事件中设置文本框大小,但这不起作用。因为 texboxes 还没有调整大小。
Private Sub Detail1_Format(sender As Object, e As EventArgs) Handles Detail1.Format
'Resize all the texboxes so when the description WordWraps all the other texbox borders line up correctly.
TextBox1.Height = TextBox1.Height
TextBox2.Height = TextBox1.Height
TextBox3.Height = TextBox1.Height
TextBox4.Height = TextBox1.Height
TextBox5.Height = TextBox1.Height
TextBox6.Height = TextBox1.Height
End Sub
【问题讨论】:
标签: report activereports