Print Page | Close Window

DateTime in Tool Bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2267
Printed Date: 05 July 2024 at 12:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DateTime in Tool Bar
Posted By: lzars
Subject: DateTime in Tool Bar
Date 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




Replies:
Posted By: lzars
Date Posted: 23 May 2005 at 12:07pm
O and the user must be able to edit the date and time


Posted By: SuperMario
Date 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

uploads/SuperMario/2005-05-23_123745_DatePicker.zip - 2005-05-23_123745_DatePicker.zip


Posted By: SuperMario
Date 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


Posted By: SuperMario
Date Posted: 24 May 2005 at 7:19am
And this worked for you?


Posted By: lzars
Date Posted: 24 May 2005 at 6:16pm
great thanx  that worked



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net