• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

VB refreshing a form/variable

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Guid0

Member
Joined
Dec 16, 2001
Location
Kansas, USA
In a form i am using i am displaying system up time through GetTickCount, but how can i get it to refresh

IE:

time = GetTickCount.........

keep refreshing time untill app is closed........that way it can show current server uptime?

i am a newbie and I follow the K*I*S*S format
 
Run it in a timer. You can easily set the refresh rate then.
 
I tried that, but not sure how.........I tried doing a infinite loop with
time.refresh in it and before i did that i tried just doing a reguler for loop 100 times.........I think i got the concept of the timer wrong.
 
skip said:
Run it in a timer. You can easily set the refresh rate then.

Then use the timer "event" to refresh whatever it is that you're trying to refresh.

The timer will then fire off whatever code you put in the event, at the interval you set.

Good luck!
 
Back