77范文网 - 专业文章范例文档资料分享平台

C#简单通讯录(4)

来源:网络收集 时间:2020-06-19 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

// 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)在线全文阅读。

C#简单通讯录(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/1110435.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: