Showing posts with label DateTimePicker. Show all posts
Showing posts with label DateTimePicker. Show all posts

Wednesday, March 25, 2009

How to place DateTimePicker onto ToolStrip control in Windows Forms .NET application?

To place DateTimePicker onto ToolStrip control in Windows Forms .NET application you had to do following:

DateTimePicker dateTimePcr = new DateTimePicker();
toolStrip1.Items.Add(new ToolStripControlHost(dateTimePcr));