VB Progress Bar... Can it do what I want?
Hello
So, first off I'm using a VB 2008 and I'm trying to make a login pannel almost got that done. But I dont know how to do one thing. I need to make a progress bar check to see if a website is up and running and if it is green text comes up saying connected I would not be asking if I could find a way to do this.
Re: VB Progress Bar... Can it do what I want?
Welcome to the forums.
A ProgressBar in itself can only display progress.
If the web server isn't configured to ignore pings, you can use the My.Computer.Network.Ping method to ping the server.
Re: VB Progress Bar... Can it do what I want?
Perhaps a simple marquee progress bar while pinging can indicate that something is happening.
Re: VB Progress Bar... Can it do what I want?
Quote:
Originally Posted by
MaximilianMayrhofer
Perhaps a simple marquee progress bar while pinging can indicate that something is happening.
Any idea how i would start that code?
Re: VB Progress Bar... Can it do what I want?
Well you would do the ping in a background thread.
Start the marquee, invoke a background worker to ping, and when the worker completes take appropriate action.