本文整理匯總了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