Table of Contents

Method GetNumberFromUser

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

A (possibly) multiline dialog message above the single line prompt.

prompt string

Single line dialog prompt.

caption string

Dialog title.

value long

Default value. Optional. Default is 0.

min long

A positive minimal value. Optional. Default is 0.

max long

A positive maximal value. Optional. Default is 100.

parent Control

Dialog 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.