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
messagestringA (possibly) multiline dialog message above the single line
prompt.promptstringSingle line dialog prompt.
captionstringDialog title.
valuelongDefault value. Optional. Default is 0.
minlongA positive minimal value. Optional. Default is 0.
maxlongA positive maximal value. Optional. Default is 100.
parentControlDialog parent.
posPointI?
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.