C#简单通讯录(4)

2025-07-30

// 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,


C#简单通讯录(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:肌肉起止点 - 图文

相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219