テンキーフォーム
Namespace: FVIL.FormsAssembly: FVILforms (in FVILforms.dll) Version: 3.1.0.0 (3.1.0.9)
Syntax
C# |
---|
public class TenKey : Form |
Visual Basic |
---|
Public Class TenKey Inherits Form |
Remarks
上下限値のある整数または実数を受け付けるフォームです。
Examples
整数モード:
C# | Copy |
---|---|
FVIL.Forms.TenKey form = new FVIL.Forms.TenKey(0, -127, 128, ""); if (form.ShowDialog(this) == DialogResult.OK) { Console.WriteLine("Value={0}", form.ToInt64()); Console.WriteLine("DataType={0}", form.DataType); Console.WriteLine("FormatString={0}", form.FormatString); } |
Value=51 DataType=Integer FormatString=
実数モード:
C# | Copy |
---|---|
FVIL.Forms.TenKey form = new FVIL.Forms.TenKey(0.0, -127.0, 128.0, "0.00"); if (form.ShowDialog(this) == DialogResult.OK) { Console.WriteLine("Value={0}", form.ToDouble()); Console.WriteLine("DataType={0}", form.DataType); Console.WriteLine("FormatString={0}", form.FormatString); } |
Value=5.1 DataType=Double FormatString=0.00
Inheritance Hierarchy
System..::..Object
System..::..MarshalByRefObject
System.ComponentModel..::..Component
System.Windows.Forms..::..Control
System.Windows.Forms..::..ScrollableControl
System.Windows.Forms..::..ContainerControl
System.Windows.Forms..::..Form
FVIL.Forms..::..TenKey
System..::..MarshalByRefObject
System.ComponentModel..::..Component
System.Windows.Forms..::..Control
System.Windows.Forms..::..ScrollableControl
System.Windows.Forms..::..ContainerControl
System.Windows.Forms..::..Form
FVIL.Forms..::..TenKey