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.

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