|
-
Jul 6th, 2006, 10:33 AM
#1
Thread Starter
Frenzied Member
[2005] DateTimePicker custom formating
Anyone know of a way to display milliseconds in the DateTimePicker? Or know of a custom control that does it? I need the ability to use the updown to change the hours, minutes, seconds, or milliseconds.
This is the format that I need it to do
hh:mm:ss.(milliseconds)
Thanks
-
Jul 6th, 2006, 02:26 PM
#2
Re: [2005] DateTimePicker custom formating
 Originally Posted by mpdeglau
Anyone know of a way to display milliseconds in the DateTimePicker? Or know of a custom control that does it? I need the ability to use the updown to change the hours, minutes, seconds, or milliseconds.
This is the format that I need it to do
hh:mm:ss.(milliseconds)
Thanks
Hi,
I've worked not so long ago with milliseconds and found the solution;
VB Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TextBox1.Text = ("Time: " & Date.Now.ToString("h:mm:ss:fff"))
End Sub
I don't think you can change a DateTimePicker.
So, this is the format you'll need:
hh:mm:ss:fff
Wkr ,
sparrow1
-
Jul 6th, 2006, 07:50 PM
#3
Thread Starter
Frenzied Member
Re: [2005] DateTimePicker custom formating
Thanks for the suggestion. I ended up creating my own control that can do it. It took a lot more time than I had to spen on it, and there is still work to be done. So if anyone knows of a control already out there that can do what I am looking for, I would love to hear about it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|