bernhardrusch
bernhardrusch

Reputation: 11880

Windows forms: ShowDialog - dialog doesn't show up

I am running an external process from an outlook plugin - and it doesn't show the dialog. I am using ShowDialog without parameters.

Any ideas how to show the dialog ?

The process doesn't have any form - i just want to show a dialog with some selections. If I call "MessageBox.Show" before, the dialog is shown - otherwise not.

I guess it is something like the answer of Peterchen in this thread: Form.ShowDialog() or Form.ShowDialog(this)?

BTW I don't have any owner, because this process doesn't have any "main window".

Any ideas ?

Upvotes: 2

Views: 3364

Answers (1)

ivymike
ivymike

Reputation: 1591

I think you would need a parent window for modal windows to work. After all, the only difference from Show() is that the child window blocks the parent. You can always create a hidden dummy window and use it as a main window but why not just use .Show() since it works ?

Upvotes: 1

Related Questions