【发布时间】:2015-01-22 21:28:24
【问题描述】:
从下面的屏幕截图中可以看出,我的自动滚动不起作用。我在选项卡中有一个 tablelayoutpanel,我在两者上都将 autoscroll 设置为 true,但都不起作用。
正如这个问题所暗示的,我尝试摆脱 Dock.Fill(我的停靠现在通过设计器设置为 None),但这也不起作用。 Winform autoscroll not working
有什么建议可以在添加新问题时让它向下滚动?
我正在我的案例语句中尝试以下代码,当我对问题 D 回答“是”时,它只显示 0,0 作为自动滚动的位置并且不会将其向下移动。
Case "DY"
Dim q As KeyValuePair(Of String, String)
For Each q In Questions
If q.Key = "E" Then
For Each c As Control In Appl1HealthQuestions.Controls
ShowControls(15, 16, 17, cbo)
Next
Appl1TabScrollLayout.AutoScroll = True
Appl1TabScrollLayout.AutoScrollPosition = New Point(Me.AutoScrollPosition.X, Me.AutoScrollPosition.Y - 20)
MessageBox.Show(Applicant1Tab.AutoScrollPosition.ToString)
MessageBox.Show(Appl1TabScrollLayout.AutoScrollPosition.ToString)
Exit For
End If
Next
【问题讨论】:
-
它在标签页内,是的,但不在组框内。我有嵌套的表格布局面板。我在代码中引用的是“主”,显示问题和组合框的那个是主中的另一个 tablelayoutpanel。
标签: vb.net autoscroll