Control.OnMove メソッドとは? わかりやすく解説

Control.OnMove メソッド

Move イベント発生させます

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Protected Overridable Sub
 OnMove ( _
    e As EventArgs _
)
Dim e As EventArgs

Me.OnMove(e)
protected virtual void OnMove (
    EventArgs e
)
protected:
virtual void OnMove (
    EventArgs^ e
)
protected void OnMove (
    EventArgs e
)
protected function OnMove (
    e : EventArgs
)

パラメータ

e

イベント データ格納している EventArgs。

解説解説
使用例使用例

Move イベント使用してフォームキャプション バーフォーム位置画面座標表示するコード例次に示します

' 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
// 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:
   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.set_Text("Form screen position = " 
        + this.get_Location().ToString());
} //Form1_Move
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からControl.OnMove メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からControl.OnMove メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からControl.OnMove メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Control.OnMove メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Control.OnMove メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS