Elan
Elan

Reputation: 6376

How determine within a dialog form if it was opened as a modal or non-modal dialog by its parent?

I have a dialog form that can be opened as a modal or non-modal dialog. From within the dialog, how can I tell in which manner the dialog was opened, i.e. modal or not?

Upvotes: 1

Views: 260

Answers (1)

Jeff Ogata
Jeff Ogata

Reputation: 57823

The Form class has a Modal property:

You can use this property to determine whether a form that you have obtained from a method or property has been displayed modally.

Upvotes: 5

Related Questions