Datetimepicker in the Toolbar

A

A. Peters

Hello!
Does someone know a nice way to add a datetimepicker-control to a
toolbar. I dont find a solution with google. (wrong keywords?)

Regards
Alex
 
C

Ciaran O''Donnell

You need to have a look at the System.Windows.Forms.ToolStripControlHost
It can be used for hosting such things on a toolbar
 
P

Pavel Minaev

Hello!
Does someone know a nice way to add a datetimepicker-control to a
toolbar. I dont find a solution with google. (wrong keywords?)

ToolStrip toolStrip;
...
toolStrip.Items.Add(new ToolStripControlHost(new DateTimePicker()));
 
A

A. Peters

Ciaran said:
You need to have a look at the System.Windows.Forms.ToolStripControlHost
It can be used for hosting such things on a toolbar

Thanks to O'Donnel and Pavel Minaev. That'it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top