IUIService.ShowDialog(Form) Yöntem

Tanım

Belirtilen formu bir iletişim kutusunda görüntülemeye çalışır.

C#
public System.Windows.Forms.DialogResult ShowDialog (System.Windows.Forms.Form form);

Parametreler

form
Form

Form Görüntülenecek.

Döndürülenler

DialogResult

DialogResult İletişim kutusu tarafından döndürülen sonuç kodunu gösteren değerlerden biri.

Örnekler

Aşağıdaki kod örneği, sınıfının bir örneğini IUIService almayı ve hizmetin ShowDialog yöntemini çağırmayı dener.

C#
IUIService UIservice = (IUIService)this.GetService( 
    typeof( System.Windows.Forms.Design.IUIService ) );
if( UIservice != null )            
    UIservice.ShowDialog(new ExampleForm());

Şunlara uygulanır

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

Ayrıca bkz.