Control.Move 이벤트

정의

컨트롤이 이동하면 발생합니다.

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

이벤트 유형

예제

다음 코드 예제에서는 이벤트를 사용하여 Move 폼의 캡션 막대에 있는 화면 좌표로 양식의 위치를 표시합니다.

   // 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

설명

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생 을 참조하십시오.

적용 대상

추가 정보