[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
Re: [2005] DateTimePicker custom formating
Quote:
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 :wave: ,
sparrow1
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.