Does anyone know of a way to position the common dialogs (OpenFileDialog,
SaveFileDialog, ColorDialog, etc.) ?

It seems they always get shown centered horizontally and a little higher
than center vertically, even if a form is specified to ShowDialog in the
owner parameter. I've only tried in C# ie:

<code snippet language=C#>

  OpenFileDialog ofd = new OpenFileDialog();
  if (ofd.ShowDialog(this) == DialogResult.OK)
    MessageBox.Show(ofd.FileName);

</code snippet>

The common dialogs don't seem to have any sort of positioning properties or
methods that I can see.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to