Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - DateTime in Tool Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DateTime in Tool Bar

 Post Reply Post Reply
Author
Message
lzars View Drop Down
Newbie
Newbie


Joined: 16 May 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote lzars Quote  Post ReplyReply Direct Link To This Post Topic: DateTime in Tool Bar
    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

Back to Top
lzars View Drop Down
Newbie
Newbie


Joined: 16 May 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote lzars Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2005 at 12:07pm
O and the user must be able to edit the date and time
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2005 at 7:19am
And this worked for you?
Back to Top
lzars View Drop Down
Newbie
Newbie


Joined: 16 May 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote lzars Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2005 at 6:16pm
great thanx  that worked
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.