Method GetNumberFromUser
GetNumberFromUser(string, string, string, long, long, long, Control?, PointI)
Shows a dialog asking the user for numeric input.
long? GetNumberFromUser(string message, string prompt, string caption, long value, long min, long max, Control? parent, PointI pos)
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
.