![]() |
DateTime in Tool Bar |
Post Reply
|
| Author | |
lzars
Newbie
Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: DateTime in Tool BarPosted: 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 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2005 at 12:07pm |
|
O and the user must be able to edit the date and time
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2005 at 12:38pm |
|
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
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2005 at 12:59pm |
|
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
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 May 2005 at 7:19am |
|
And this worked for you?
|
|
![]() |
|
lzars
Newbie
Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 May 2005 at 6:16pm |
|
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 |