By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,587 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,587 IT Pros & Developers. It's quick & easy.

System clock

P: n/a
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: ne*******@tin.it

Thank you in advance

Fritz89
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Fritz89" <an*******@discussions.microsoft.com> schrieb
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: ne*******@tin.it


Asked here, answered here. ;-)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

P: n/a
* "Armin Zingler" <az*******@freenet.de> scripsit:
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)


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

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

P: n/a
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb

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


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. ;)
--
Armin

Nov 20 '05 #4

P: n/a
* "Armin Zingler" <az*******@freenet.de> scripsit:
TimeOfDay = New Date(0, 0, 0, hour, minute, second)


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. ;)


"By definition."

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.