课程设计报告
题
专
姓
年
学
目:电子通讯录
业:计算机科学与技术
名:莫小猪 宋老鹰
级:2013 级
号:
指导老师:唐 杰
1
一、 前言
随着计算的飞速发展,人们的生活、工作、学习越来越依赖
于计算机,同学朋友之间的联系也常常是通过计算机来操作
的,因而建立一个电子同学录管理系统也就想应而生。
电子通讯录主要是记录同学、朋友、同事、客户之间的连联
系方式,他应该有增加、修改、查询等功能。通过控件来实现
该功能。
二、 设计框架及设计思路
1、 设计框架
2.设计思路
设计好通讯录简单总页面窗口,然后再分别设计管理通讯录
窗口,添加联系人窗口,快速查找窗口,以及一个退出 bottom。
三、 设计的实施
2
该界面共有四个 textbox 控件,四个 lable 控件,四个 bottom
控件,一个 textbox 控件。
C、 快速查找窗口
该界面共有一个 textbox 控件,一个 listview 控件,一个 textbox
控件和一个 lable 控件。
4
程序代码编写
1、总页面窗口
namespace 简单通讯录
{
partial class Form1
{
private System.ComponentModel.IContainer components = null;
///
如果应释放管资源为a true;否则为a
false。
protected override void Dispose(bool disposing)
{
}
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
#region Windows 窗体设计器生成的代码
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(108, 40);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(104,
29);
this.button1.TabIndex = 0;
this.button1.Text = "管理通讯录";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new
System.EventHandler(this.button1_Click);
this.button2.Location = new System.Drawing.Point(108, 89);
this.button2.Name = "button2";
7
this.button2.Size = new System.Drawing.Size(104, 29);
this.button2.TabIndex = 1;
this.button2.Text = "快速查找";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new
System.EventHandler(this.button2_Click);
this.button3.Location = new System.Drawing.Point(108, 141);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(104, 29);
this.button3.TabIndex = 2;
this.button3.Text = "添加联系人";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new
System.EventHandler(this.button3_Click);
this.button4.Location = new System.Drawing.Point(108, 193);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(104, 29);
this.button4.TabIndex = 3;
this.button4.Text = "退出?";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new
System.EventHandler(this.button4_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F,
12F);
this.AutoScaleMode =
System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Teal;
this.ClientSize = new System.Drawing.Size(321, 331);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "简单通讯录";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
8