// flowLayoutPanel1 //
this.flowLayoutPanel1.Controls.Add(this.button2); this.flowLayoutPanel1.Controls.Add(this.button3); this.flowLayoutPanel1.Controls.Add(this.button1); this.flowLayoutPanel1.Controls.Add(this.button4);
this.flowLayoutPanel1.Location = new System.Drawing.Point(74, 23);
this.flowLayoutPanel1.Name = \
this.flowLayoutPanel1.Size = new System.Drawing.Size(133, 130); this.flowLayoutPanel1.TabIndex = 0; // // button2 //
this.button2.Location = new System.Drawing.Point(3, 3); this.button2.Name = \
this.button2.Size = new System.Drawing.Size(129, 25); this.button2.TabIndex = 1; this.button2.Text = \管理通信录\
this.button2.UseVisualStyleBackColor = true; this.button2.Click
System.EventHandler(this.button2_Click); // // button3
+=
new
//
this.button3.Location = new System.Drawing.Point(3, 34); this.button3.Name = \
this.button3.Size = new System.Drawing.Size(129, 25); this.button3.TabIndex = 2; this.button3.Text = \快速查找\
this.button3.UseVisualStyleBackColor = true; this.button3.Click
+=
System.EventHandler(this.button3_Click); // // button1 //
this.button1.Location = new System.Drawing.Point(3, 65); this.button1.Name = \
this.button1.Size = new System.Drawing.Size(129, 25); this.button1.TabIndex = 0; this.button1.Text = \添加联系人\
this.button1.UseVisualStyleBackColor = true; this.button1.Click
+=
System.EventHandler(this.button1_Click); // // button4 //
this.button4.Location = new System.Drawing.Point(3, 96);
new
new
this.button4.Name = \
this.button4.Size = new System.Drawing.Size(129, 25); this.button4.TabIndex = 3; this.button4.Text = \退出\
this.button4.UseVisualStyleBackColor = true; this.button4.Click
System.EventHandler(this.button4_Click); //
// 简单通讯录 //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(284, 262); this.Controls.Add(this.flowLayoutPanel1); this.Name = \简单通讯录\ this.Text = \简单通讯录\
this.flowLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
+=
new
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; } }
------------------------------简单通讯录.cs---------------------------
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.IO;
namespace WindowsFormsApplication3 {
public partial class 简单通讯录 : Form {
public 简单通讯录() {
InitializeComponent();
}
private void button4_Click(object sender, EventArgs e) { //点击退出按钮系统提示是否退出通讯录系统 DialogResult diares;
MessageBoxButtons buttons = MessageBoxButtons.YesNo; MessageBoxDefaultButton defbut
MessageBoxDefaultButton.Button1;
MessageBoxIcon icon = MessageBoxIcon.Question; string ask = \你是否要退出通讯录?\ string caption = \温馨提示@\
diares = MessageBox.Show(this, ask, caption, buttons, defbut);
if (diares == DialogResult.Yes) {
this.Close(); } }
private void button1_Click(object sender, EventArgs e) {
new 添加联系人().Show(); }
private void button2_Click(object sender, EventArgs e)
=
icon,
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库C#简单通讯录(4)在线全文阅读。
相关推荐: