Langue

FileDialog.RunDialog(IntPtr) Méthode

Définition

RunDialog(IntPtr) est appelé pour afficher une boîte de dialogue de fichier dans une classe dérivée, telle que OpenFileDialog et SaveFileDialog.

protected:
 override bool RunDialog(IntPtr hwndOwner);
[System.Security.SecurityCritical]
protected override bool RunDialog(IntPtr hwndOwner);
protected override bool RunDialog(IntPtr hwndOwner);
[<System.Security.SecurityCritical>]
override this.RunDialog : nativeint -> bool
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hwndOwner As IntPtr) As Boolean

Paramètres

hwndOwner
IntPtr

nativeint

Gérez la fenêtre qui possède la boîte de dialogue.

Retours

true si l’utilisateur clique sur le bouton OK de la boîte de dialogue qui s’affiche (par exemple, OpenFileDialog, SaveFileDialog) ; sinon, false.

Attributs

Remarques

La boîte de dialogue qui s’affiche finalement est affectée à une fenêtre propriétaire, qui est spécifiée par le hwndOwner paramètre.

S’applique à