Hey Hey Hey. What's with all the testy attitudes?
It works for me, and I don't have a..."time server", or whatever you called it set up. All it does is find the local server and match time. What's the big deal?
And if you don't have just one server, I'm sorry, I just *assumed*...
I have 11 computers operating on Windows 98 connected to 1 Windows 2000 Professional Family and that shelled statement works PERFECTLY. That's how I keep the company's time clock in check. Whether or not it works for you is beyond me.
-- Never underestimate the power of the GOTO statement.
Or, if you just hate it when people just won't answer the question with a simple line of code, try this:
v = Shell("net time /set /yes", vbHide)
Sure thing:
Advanced Visual Basic 6 2nd Edition
by Kip Irvine & Kaiyang Liang, 1999
Scoff/Jones Inc., Publishers
scotjones2@aol.com
It really is a helpful book...it's never left my desk.
This isn't really gonna help, but it may give you an idea. From the Form's Keydown event, use KeyCodes to recognize what button was pushed...but the downside is that I can only get it to recognize one button at a time.
Sorry!
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)...
I agree with Brian56...try the Visual Basic Black Book, (or, just get them both: Black & Blue.) The Visual Basic Blue Book is pretty sweet, too.
Those are great books, but I honestly, (even 4 years out of college,) still refer back to my Advanced Visual Basic 6 books from school. Probably the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.