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
WindowsFormsApp49 {
public
partial
class
Form1 : Form {
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
Label lab =
new
Label();
lab.Location =
new
Point(183, 162);
lab.Size =
new
Size(172, 20);
lab.Text =
"Select Time"
;
lab.Font =
new
Font(
"Comic Sans MS"
, 12);
this
.Controls.Add(lab);
DateTimePicker dt =
new
DateTimePicker();
dt.Location =
new
Point(360, 162);
dt.Size =
new
Size(292, 26);
dt.MaxDate =
new
DateTime(2500, 12, 20);
dt.MinDate =
new
DateTime(1753, 1, 1);
dt.Format = DateTimePickerFormat.Time;
dt.Name =
"MyPicker"
;
dt.Font =
new
Font(
"Comic Sans MS"
, 12);
dt.ShowUpDown =
true
;
this
.Controls.Add(dt);
}
}
}