System.Windows.Forms.CommonDialog.ShowDialog C# (CSharp) Method

ShowDialog() public method

public ShowDialog ( ) : DialogResult
return DialogResult
		public DialogResult ShowDialog() {
			return ShowDialog (null);
		}

Same methods

CommonDialog::ShowDialog ( IWin32Window owner ) : DialogResult

Usage Example

		private DlgBox() {}	// To remove the constructor from the documentation!

		///////////////////////////////////////////////////////////////////////
		// CommonDialog

		/// <summary>
		/// Show a command dialog box at the center of the active window.
		/// </summary>
		public static DialogResult ShowDialog(CommonDialog dlg)
		{
			CenterWindow centerWindow = new CenterWindow(IntPtr.Zero);
			DialogResult dlgResult = dlg.ShowDialog();
			centerWindow.Dispose();
			return dlgResult;
		}
All Usage Examples Of System.Windows.Forms.CommonDialog::ShowDialog