471,357 Members | 1,175 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Datetimepicker in the Toolbar

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
3 5308
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
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
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.

Similar topics

2 posts views Thread by Angelina | last post: by
reply views Thread by Sumit | last post: by
4 posts views Thread by Jacek Jurkowski | last post: by
7 posts views Thread by Clamara | last post: by
3 posts views Thread by Charlie | last post: by
3 posts views Thread by Simon Tamman | last post: by
11 posts views Thread by jessy | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.