![]() |
DateTime in Tool Bar |
Post Reply ![]() |
Author | |
lzars ![]() Newbie ![]() Joined: 16 May 2005 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 23 May 2005 at 9:40am |
how would i get a text box formatted like yyyy/mm/dd hh:mm:ss in a toolbar?
thanx |
|
![]() |
|
lzars ![]() Newbie ![]() Joined: 16 May 2005 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
O and the user must be able to edit the date and time
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Attached is a sample that shows how to add a DateTimePicker control to the toolbar (as we decided), this looks and functions much nicer than a text box ![]() 2005-05-23_123745_DatePicker.zip |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Oh, I forgot to put the format as you requested, change the code as follows:
btnDateButton.Format = DateTimePickerFormat.Custom btnDateButton.CustomFormat = "yyyy/dd/MM, hh:mm:ss tt" btnDateButton.Width = 155 Let me know if this is what you were looking for ![]() Edited by SuperMario |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
And this worked for you?
|
|
![]() |
|
lzars ![]() Newbie ![]() Joined: 16 May 2005 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
great thanx that worked
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |