![]() |
Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
|
Used to center any Windows dialog. Example: More...
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. | |
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"); }
| SolidFramework.Forms.CenterDialog.CenterDialog | ( | Form | owner | ) |
Initializes a new instance of the CenterDialog class.
| owner | The owner. |