Method GetNumberFromUser
GetNumberFromUser(string?, string?, string?, long, long, long, Control?, PointI?)
Shows a dialog asking the user for numeric input.
public static long? GetNumberFromUser(string? message, string? prompt = null, string? caption = null, long value = 0, long min = 0, long max = 100, Control? parent = null, PointI? pos = null)
Parameters
message
stringA (possibly) multiline dialog message above the single line
prompt
.prompt
stringSingle line dialog prompt.
caption
stringDialog title.
value
longDefault value. Optional. Default is 0.
min
longA positive minimal value. Optional. Default is 0.
max
longA positive maximal value. Optional. Default is 100.
parent
ControlDialog parent.
pos
PointI?
Returns
- long?
Remarks
The dialogs title is set to caption
, it contains a (possibly) multiline
message
above the single line prompt and the zone for entering
the number. Dialog is centered on its parent unless an explicit position is given
in pos
.