FileDialog.RunDialog(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
RunDialog(IntPtr) is called to display a file dialog in a derived class, such as OpenFileDialog and 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
Parameters
- hwndOwner
-
IntPtr
nativeint
Handle to the window that owns the dialog.
Returns
true
if the user clicks the OK button of the dialog that is displayed (for example, OpenFileDialog, SaveFileDialog); otherwise, false
.
- Attributes
Remarks
The dialog that is eventually shown is assigned an owner window, which is specified by the hwndOwner
parameter.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om