By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

Datetimepicker in the Toolbar

P: n/a
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
Jul 13 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You need to have a look at the System.Windows.Forms.ToolStripControlHost
It can be used for hosting such things on a toolbar
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"A. Peters" wrote:
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
Jul 14 '08 #2

P: n/a
On Jul 14, 12:57*am, "A. Peters" <apeters_NOS...@hyperbird.dewrote:
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()));
Jul 14 '08 #3

P: n/a
Ciaran O''Donnell schrieb:
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.
Jul 14 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.