Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
Classes | Public Member Functions | List of all members
SolidFramework.Forms.CenterDialog Class Reference

Used to center any Windows dialog. Example: More...

Inheritance diagram for SolidFramework.Forms.CenterDialog:

Public Member Functions

 CenterDialog (Form owner)
 Initializes a new instance of the CenterDialog class. More...
 
 CenterDialog (IWin32Window owner)
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 

Detailed Description

Used to center any Windows dialog. Example:

OpenFileDialog dlg = new OpenFileDialog(); dlg.ShowDialog(); using (new CenterDialog(this)) //where this is the owning form { dlg.ShowDialog(this); } using (new CenterDialog(this)) //where this is the owning form { MessageBox.Show("Centered on parent"); }

Constructor & Destructor Documentation

◆ CenterDialog()

SolidFramework.Forms.CenterDialog.CenterDialog ( Form  owner)

Initializes a new instance of the CenterDialog class.

Parameters
ownerThe owner.