Search thousands of free JavaScript snippets that you can quickly copy and paste into your web pages. Get free JavaScript tutorials, references, code, menus, calendars, popup windows, games, and much more.
Visual Studio: Visual C# Ping Example
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Net.NetworkInformation;
using System.Threading;
namespace Ping_example
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click_1(object sender, EventArgs e)
{
for (int i = 0; i < 4; ++i)
{
using (Ping p = new Ping())
{
listView1.Items.Add(p.Send("www.google.com").RoundtripTime.ToString() + "ms\n");
}
}
}
}
}
// make sure that using System.Runtime.InteropServices; is included
// make sure that using System.Net.NetworkInformation; is included
// make sure that using System.Threading; is included for method Sleep
Subscribe to:
Post Comments (Atom)
My New Favorite Music Genre Is Polish Noir
These 10 artists create music that is mystical, melancholy, magical, and more. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ...
-
code.gs // 1. Enter sheet name where data is to be written below var SHEET_NAME = "Sheet1" ; // 2. Run > setup // // 3....
No comments:
Post a Comment