Aracılığıyla paylaş


Nasıl Yapılır: İletişim Kutusu Açma

This example shows how to open a dialog box.

Örnek

A dialog box is a window that is opened by instantiating Window and calling the ShowDialog method. ShowDialog opens a window and doesn't return until the new dialog box has been closed. This type of window is also known as a modal window, and restricts user input.

            Dim dialogBox As New CustomDialogBox()
            dialogBox.ShowDialog() ' Returns when dialog box has closed
CustomDialogBox dialogBox = new CustomDialogBox();
dialogBox.ShowDialog(); // Returns when dialog box has closed

Güvenlik

Calling ShowDialog requires permission to use all windows and user input events without restriction.

Ayrıca bkz.

Görevler

Nasıl Yapılır: İletişim Kutusu Sonucunu Dönme