Control.Move Control.Move Control.Move Control.Move Event

정의

컨트롤이 이동하면 발생합니다.Occurs when the control is moved.

public:
 event EventHandler ^ Move;
public event EventHandler Move;
member this.Move : EventHandler 
Public Custom Event Move As EventHandler 

예제

다음 코드 예제에서는 Move 폼의 캡션 표시줄의 화면 좌표에서 폼의 위치를 표시 하는 이벤트입니다.The following code example uses the Move event to display the location of the form in screen coordinates on the caption bar of the form.

   // The following example displays the location of the form in screen coordinates
   // on the caption bar of the form.
private:
   void Form1_Move( Object^ /*sender*/, System::EventArgs^ /*e*/ )
   {
      this->Text = String::Format( "Form screen position = {0}", this->Location );
   }
// The following example displays the location of the form in screen coordinates
// on the caption bar of the form.
private void Form1_Move(object sender, System.EventArgs e)
{
    this.Text = "Form screen position = " + this.Location.ToString();
}
' The following example displays the location of the form in screen coordinates
' on the caption bar of the form.
Private Sub Form1_Move(sender As Object, e As System.EventArgs) Handles MyBase.Move
    Me.Text = "Form screen position = " + Me.Location.ToString()
End Sub

설명

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생 을 참조하십시오.For more information about handling events, see Handling and Raising Events.

적용 대상

추가 정보