using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
WindowsFormsApp44 {
public
partial
class
Form1 : Form {
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
Label l1 =
new
Label();
l1.Location =
new
Point(348, 61);
l1.Size =
new
Size(215, 25);
l1.Text =
"Example"
;
l1.Font =
new
Font(
"Bodoni MT"
, 16);
this
.Controls.Add(l1);
Label l2 =
new
Label();
l2.Location =
new
Point(242, 136);
l2.Size =
new
Size(103, 20);
l2.Text =
"Select value:"
;
l2.Font =
new
Font(
"Bodoni MT"
, 12);
this
.Controls.Add(l2);
NumericUpDown n =
new
NumericUpDown();
n.Location =
new
Point(386, 130);
n.Size =
new
Size(126, 26);
n.Font =
new
Font(
"Bodoni MT"
, 12);
n.Minimum = 1800;
n.Maximum = 3000;
n.Increment = 1;
n.ThousandsSeparator =
true
;
n.Visible =
true
;
this
.Controls.Add(n);
}
}
}