1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
namespace MyNet {
partial class myNetForm {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblPing = new System.Windows.Forms.Label();
this.lblErrorMessage = new System.Windows.Forms.Label();
this.cbPingAddress = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(31, 57);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Ping:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(83, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Address to ping:";
//
// lblPing
//
this.lblPing.BackColor = System.Drawing.Color.Red;
this.lblPing.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPing.Location = new System.Drawing.Point(135, 45);
this.lblPing.Name = "lblPing";
this.lblPing.Size = new System.Drawing.Size(125, 40);
this.lblPing.TabIndex = 3;
this.lblPing.Text = "-1";
this.lblPing.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblErrorMessage
//
this.lblErrorMessage.Location = new System.Drawing.Point(32, 99);
this.lblErrorMessage.Name = "lblErrorMessage";
this.lblErrorMessage.Size = new System.Drawing.Size(236, 36);
this.lblErrorMessage.TabIndex = 4;
this.lblErrorMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// cbPingAddress
//
this.cbPingAddress.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.cbPingAddress.FormattingEnabled = true;
this.cbPingAddress.Items.AddRange(new object[] {
"8.8.8.8",
"8.8.4.4",
"1.1.1.1",
"1.0.0.1",
"208.67.222.222",
"208.67.220.220"});
this.cbPingAddress.Location = new System.Drawing.Point(117, 9);
this.cbPingAddress.Name = "cbPingAddress";
this.cbPingAddress.Size = new System.Drawing.Size(160, 21);
this.cbPingAddress.TabIndex = 5;
this.cbPingAddress.Text = "8.8.8.8";
//
// myNetForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(289, 144);
this.Controls.Add(this.cbPingAddress);
this.Controls.Add(this.lblErrorMessage);
this.Controls.Add(this.lblPing);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "myNetForm";
this.Text = "Pinger";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lblPing;
private System.Windows.Forms.Label lblErrorMessage;
private System.Windows.Forms.ComboBox cbPingAddress;
}
}
|