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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IUIService.ShowDialog メソッドの意味・解説 

IUIService.ShowDialog メソッド

指定したフォームダイアログ ボックス表示しようとします

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

Function ShowDialog ( _
    form As Form _
) As DialogResult
Dim instance As IUIService
Dim form As Form
Dim returnValue As DialogResult

returnValue = instance.ShowDialog(form)
DialogResult ShowDialog (
    Form form
)
DialogResult ShowDialog (
    Form^ form
)
DialogResult ShowDialog (
    Form form
)
function ShowDialog (
    form : Form
) : DialogResult

パラメータ

form

表示する Form

戻り値
ダイアログ ボックスから返され結果コードを示す DialogResult 値の 1 つ

使用例使用例

IUIService クラスインスタンス取得しサービスShowDialog メソッド呼び出すコード例次に示します

Dim UIservice As IUIService = CType(Me.GetService(
 _
    GetType(System.Windows.Forms.Design.IUIService)), IUIService)
If Not (UIservice Is Nothing)
 Then
    UIservice.ShowDialog(New ExampleForm())
End If
IUIService UIservice = (IUIService)this.GetService( 
    typeof( System.Windows.Forms.Design.IUIService ) );
if( UIservice != null )            
    UIservice.ShowDialog(new ExampleForm());
IUIService^ UIservice = dynamic_cast<IUIService^>(this->GetService(
 System::Windows::Forms::Design::IUIService::typeid ));
if ( UIservice != nullptr )
      UIservice->ShowDialog( gcnew ExampleForm );
IUIService uiService = (IUIService)this.GetService(System.Windows.
    Forms.Design.IUIService.class.ToType());
if (uiService != null) {
    uiService.ShowDialog(new ExampleForm());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IUIService インターフェイス
IUIService メンバ
System.Windows.Forms.Design 名前空間
DialogResult



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「IUIService.ShowDialog メソッド」の関連用語

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

   

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



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

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

©2026 GRAS Group, Inc.RSS