Reputation:
I want to add a datetimepicker to a ToolStrip control to show today's date, so is there any way to add the datetimepicker in ToolStrip?
Example:
Thank you.
Upvotes: 3
Views: 7283
Reputation: 1245
you can use this snippet :
var datePicker = new ToolStripControlHost(new DateTimePicker());
toolStrip1.Items.Add(datePicker);
Upvotes: 17