Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在环顾四周,但在 VB.net 中找不到任何类似的东西。
如果表单大小发生变化,我想运行以下代码
'Sets the TabControll size Me.TabControl1.Size = New Size(Me.ClientRectangle.Width, 21)
是否可以检查\检测用户所做的表单大小更改?
您可以依靠Resize Event表单
Resize Event
Private Sub Form1_Resize(sender As Object, e As System.EventArgs) Handles Me.Resize 'Sets the TabControll size Me.TabControl1.Size = New Size(Me.ClientRectangle.Width, 21) End Sub
当表单最大化或以任何其他方式(从代码或用户“手动”)更改其大小时触发它。