datetimepicker
i know how to show time(hh:mm) in datetimepicker . but how can i set seconds and milli seconds in datetimepicker with showing auto incrementing seconds
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 20, 2014, 7:54 AM
To get it to autoincrement, you'll need to add a Timer control to the form, set its Interval property to 1000 and then put the following code in its Tick event handler:
Munesh SharmaPosted Mar 20, 2014, 7:28 AM
MessageBox.Show("The selected value is " +
dateTimePicker1.Text);
MessageBox.Show("The day of the week is " +
dateTimePicker1.Value.DayOfWeek.ToString());
MessageBox.Show("Millisecond is: " +
dateTimePicker1.Value.Millisecond.ToString());