Show / Hide Table of Contents

Property dialog.Result


Overload

Selected button id. The same as the dialog.ShowDialog return value.

public int Result { get; }
Property Value
int

Remarks

If the result is still unavailable (the dialog still not closed):

  • If called from the same thread that called dialog.ShowDialog, returns 0.
  • If called from another thread, waits until the dialog is closed.

Note: dialog.ShowDialogNoWait calls dialog.ShowDialog in another thread.