本文整理汇总了VB.NET中System.Windows.Forms.Control.SizeChanged事件的典型用法代码示例。如果您正苦于以下问题:VB.NET Control.SizeChanged事件的具体用法?VB.NET Control.SizeChanged怎么用?VB.NET Control.SizeChanged使用的例子?那么恭喜您, 这里精选的事件代码示例或许可以为您提供帮助。
在下文中一共展示了Control.SizeChanged事件的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: RegisterEventHandler
Private Sub RegisterEventHandler()
AddHandler myButton1.SizeChanged, AddressOf MyButton1_SizeChanged
End Sub
Private Sub MyButton2_Click(sender As Object, e As EventArgs)
' Set the scale for the control to the value provided.
Dim scale As Single = CSng(myNumericUpDown1.Value)
myButton1.Scale(scale)
End Sub
Private Sub MyButton1_SizeChanged(sender As Object, e As EventArgs)
MessageBox.Show("The size of the 'Button' control has changed")
End Sub