本文整理汇总了VB.NET中System.Windows.Forms.Control.LocationChanged事件的典型用法代码示例。如果您正苦于以下问题:VB.NET Control.LocationChanged事件的具体用法?VB.NET Control.LocationChanged怎么用?VB.NET Control.LocationChanged使用的例子?那么恭喜您, 这里精选的事件代码示例或许可以为您提供帮助。
在下文中一共展示了Control.LocationChanged事件的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Form1
' 导入命名空间
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Public Class Form1
Inherits Form
Private WithEvents statusStrip1 As StatusStrip
Public Sub New()
InitializeComponent()
End Sub
<STAThread()> _
Shared Sub Main()
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(False)
Application.Run(New Form1())
End Sub
Private Sub InitializeComponent()
Me.statusStrip1 = New System.Windows.Forms.StatusStrip()
Me.SuspendLayout()
'
' statusStrip1
'
Me.statusStrip1.Location = New System.Drawing.Point(0, 251)
Me.statusStrip1.Name = "statusStrip1"
Me.statusStrip1.Size = New System.Drawing.Size(292, 22)
Me.statusStrip1.TabIndex = 0
Me.statusStrip1.Text = "statusStrip1"
'
' Form1
'
Me.ClientSize = New System.Drawing.Size(292, 273)
Me.Controls.Add(statusStrip1)
Me.Name = "Form1"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Private Sub statusStrip1_LocationChanged(sender As Object, e As EventArgs) Handles statusStrip1.LocationChanged
MessageBox.Show("The form has been resized.")
End Sub
End Class