Class InputBoxResult
What was typed in an InputBox, that it was cancelled, or that nobody was asked.
public sealed record InputBoxResult : IEquatable<InputBoxResult>
- Inheritance
-
InputBoxResult
- Implements
- Inherited Members
Properties
Cancelled
Whether the dialog was cancelled - its Cancel button, or Esc - which the program is told with vbNullString, and not with
the zero-length string of a dialog confirmed with nothing typed.
public bool Cancelled { get; init; }
Property Value
Declined
Whether the one asked shows dialogs, and declined to answer this one: nobody else will, and the program's run fails (VBR50001). The language server
says so of a client that said it shows dialogs and did not handle one; the host shows no dialog of its own then.
public bool Declined { get; init; }
Property Value
Handled
Whether someone was asked. false when the one asked has nobody to ask - a client that did not say it shows dialogs - and the host shows the dialog the platform it runs on has.
public bool Handled { get; init; }
Property Value
NotHandled
The answer of one who has nobody to ask.
public static InputBoxResult NotHandled { get; }
Property Value
Value
What was typed; ignored when Cancelled.
public string Value { get; init; }