'Declaration Public Event Moved As EventHandler(Of MovedEventArgs)
public event EventHandler<MovedEventArgs> Moved
The event handler receives an argument of type MovedEventArgs containing data related to this event. The following MovedEventArgs properties provide information specific to this event.
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); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2