Answers for "how to ping in c# forms"

C#
1

how to ping in c# forms

private void btnPing_Click(object sender, EventArgs e)
{
    Ping ping = new Ping();
    PingReply reply = ping.Send(txtIP.Text, 1000);
    MessageBox.Show(reply.Status.ToString(), "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Posted by: Guest on November-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language