I'm using windows forms application.
I'm trying to send a infinity ping to server.
actually I can send it under the FormLoad but it runs once apparently.
this is my code:
private void Form1_Load(object sender, EventArgs e)
{
Ping ping = new Ping();
PingReply pingReply = ping.Send("10.0.0.138");
if (pingReply.Status == IPStatus.Success)
button1.BackColor = Color.Green;
else
button1.BackColor = Color.Red;
}
How can I use it all the time when the application is running?
thank u all.
MOD EDIT: Added code tags. When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 23 September 2012 - 04:36 AM

New Topic/Question
Reply



MultiQuote






|