System clock

F

Fritz89

I'm a Visual Basic .NET developer. I would like to know
if there is any code which enables me to set the time of
the System's clock with my favourite values.

Is it possible to make a form with 3 text labels where I
can type the values for hour, minutes and seconds and a
button to apply these values to the system clock? And if
it's possible, how shall I proceed?

I do really need a hint!!!

Please send replies to: (e-mail address removed)

Thank you in advance

Fritz89
 
A

Armin Zingler

Fritz89 said:
I'm a Visual Basic .NET developer. I would like to know
if there is any code which enables me to set the time of
the System's clock with my favourite values.

Is it possible to make a form with 3 text labels where I
can type the values for hour, minutes and seconds and a
button to apply these values to the system clock? And if
it's possible, how shall I proceed?

I do really need a hint!!!

Dim hour, minute, second As Integer

hour = Integer.Parse(txtHour.text)
minute = Integer.Parse(txtMinute.text)
second = Integer.Parse(txtSecond.text)

TimeOfDay = New Date(0, 0, 0, hour, minute, second)

Please send replies to: (e-mail address removed)

Asked here, answered here. ;-)
 
H

Herfried K. Wagner [MVP]

* "Armin Zingler said:
Dim hour, minute, second As Integer

hour = Integer.Parse(txtHour.text)
minute = Integer.Parse(txtMinute.text)
second = Integer.Parse(txtSecond.text)

TimeOfDay = New Date(0, 0, 0, hour, minute, second)

I still don't understand why people want to do something like that...

;-)
 
A

Armin Zingler

Herfried K. Wagner said:
I still don't understand why people want to do something like
that...

;-)

I didn't think about it. We don't have to understand. ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top