'宣言 Public Event Moved As EventHandler(Of MovedEventArgs)
public event EventHandler<MovedEventArgs> Moved
イベント ハンドラが、このイベントに関連するデータを含む、MovedEventArgs 型の引数を受け取りました。次の MovedEventArgs プロパティには、このイベントの固有の情報が記載されます。
AddHandler DialogWindow.Moved, AddressOf DialogWindow_Moved ... Private Sub DialogWindow_Moved(ByVal sender As System.Object, ByVal e As MovedEventArgs) System.Diagnostics.Debug.WriteLine("Dialog Window has moved successfully. New left coordinate is " + e.Left.ToString() + ", new top coordinate is " + e.Top.ToString()) End Sub
DialogWindow.Moved += new EventHandler<MovedEventArgs>(DialogWindow_Moved); ... void DialogWindow_Moved(object sender, MovedEventArgs e) { System.Diagnostics.Debug.WriteLine("Dialog Window has moved successfully. New Left coordinate is "+e.Left+", new top coordinate is "+e.Top); }