| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4824 人关注过本帖
标题:[下载]本人做得电话本的源代码
只看楼主 加入收藏
host1982
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-8-7
收藏
 问题点数:0 回复次数:28 
[下载]本人做得电话本的源代码

以下是我自己做得电话本的源代码,里面还有点缺陷,请大家指出并且能够改正谢谢了 using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data;

namespace AddressList { /// <summary> /// Form1 的摘要说明。 /// </summary> public class AddressList : System.Windows.Forms.Form { private System.Windows.Forms.GroupBox AddInfo; private System.Windows.Forms.Label lblName; private System.Windows.Forms.Label lblHomePhone; private System.Windows.Forms.Label lblOfficePhone; private System.Windows.Forms.Label lblHandSet; private System.Windows.Forms.Label lblTouchAddress; private System.Windows.Forms.Label lblPostalcode; private System.Windows.Forms.Label lblEmail; private System.Windows.Forms.TextBox txtName; private System.Windows.Forms.TextBox txtHomePhone; private System.Windows.Forms.TextBox txtOfficePhone; private System.Windows.Forms.TextBox txtHandSet; private System.Windows.Forms.TextBox txtTouchAddress; private System.Windows.Forms.TextBox txtPostalCode; private System.Windows.Forms.TextBox txtEmail; private System.Windows.Forms.Button btnAdd; private System.Windows.Forms.GroupBox ExtendOperation; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Button btnModify; private System.Windows.Forms.Button btnDelete; private System.Windows.Forms.Button btnSelect; private System.Windows.Forms.Label lblNote; private System.Windows.Forms.DataGrid dataGrid1; /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.Container components = null;

public AddressList() { // // Windows 窗体设计器支持所必需的 // InitializeComponent();

// // TOD 在 InitializeComponent 调用后添加任何构造函数代码 // }

/// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); }

/// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.Run(new AddressList()); }

private void btnAdd_Click(object sender, System.EventArgs e) { AddInfo add=new AddInfo(); int ret=add.Add(this.txtName.Text,this.txtHomePhone.Text,this.txtOfficePhone.Text,this.txtHandSet.Text,this.txtTouchAddress.Text,this.txtPostalCode.Text,this.txtEmail.Text); if(ret>0) { MessageBox.Show("恭喜你,添加成功!"); bind(); } else { MessageBox.Show("添加失败!原因可能是你输入了重复的名称!"); } this.txtName.Text=""; this.txtHomePhone.Text=""; this.txtOfficePhone.Text=""; this.txtHandSet.Text=""; this.txtTouchAddress.Text=""; this.txtPostalCode.Text=""; this.txtEmail.Text="";

}

private void AddressList_Load(object sender, System.EventArgs e) { bind(); DataGridTableStyle ts1= new DataGridTableStyle(); ts1.MappingName="BasicInfo";

DataGridColumnStyle cs = new DataGridTextBoxColumn(); cs.Alignment=HorizontalAlignment.Center; cs.MappingName="SName"; cs.HeaderText="姓名"; cs.Width=80; ts1.GridColumnStyles.Add(cs);

DataGridColumnStyle cs1 =new DataGridTextBoxColumn(); cs1.Alignment=HorizontalAlignment.Center; ; cs1.MappingName="HomePhone"; cs1.HeaderText="住宅电话"; cs1.Width=80; ts1.GridColumnStyles.Add(cs1);

DataGridColumnStyle cs2 =new DataGridTextBoxColumn(); cs2.Alignment=HorizontalAlignment.Center; ; cs2.MappingName="OfficePhone"; cs2.HeaderText="办公电话"; cs2.Width=80; ts1.GridColumnStyles.Add(cs2); DataGridColumnStyle cs3 = new DataGridTextBoxColumn(); cs3.Alignment=HorizontalAlignment.Center; cs3.MappingName="HandSet"; cs3.HeaderText="手机号码"; cs3.Width=80; ts1.GridColumnStyles.Add(cs3); DataGridColumnStyle cs4 = new DataGridTextBoxColumn(); cs4.Alignment=HorizontalAlignment.Center; cs4.MappingName="TouchAddress"; cs4.HeaderText="通信地址"; cs4.Width=200; ts1.GridColumnStyles.Add(cs4); DataGridColumnStyle cs5 = new DataGridTextBoxColumn(); cs5.Alignment=HorizontalAlignment.Center; cs5.MappingName="PostalCode"; cs5.HeaderText="邮政编码"; cs5.Width=60; ts1.GridColumnStyles.Add(cs5);

DataGridColumnStyle cs6 = new DataGridTextBoxColumn(); cs6.Alignment=HorizontalAlignment.Center; cs6.MappingName="Email"; cs6.HeaderText="电子邮件"; cs6.Width=150; ts1.GridColumnStyles.Add(cs6); this.dataGrid1.TableStyles.Add(ts1); } public void bind() { SearchInfo result = new SearchInfo(); DataSet view = result.GetAddInfo(); this.dataGrid1.DataSource=view; this.dataGrid1.DataMember="BasicInfo"; }

private void btnModify_Click(object sender, System.EventArgs e) { UpdateBasicInfo update=new UpdateBasicInfo(); int ret=update.Update(this.txtName.Text,this.txtHomePhone.Text,this.txtOfficePhone.Text,this.txtHandSet.Text,this.txtTouchAddress.Text,this.txtPostalCode.Text,this.txtEmail.Text); if(ret>0) { bind(); MessageBox.Show("修改成功,请核对!"); } else { MessageBox.Show("修改失败!"); } } private void dataGrid1_Click(object sender, System.EventArgs e) { this.btnModify.Enabled=true; this.btnDelete.Enabled=true; int row=this.dataGrid1.CurrentCell.RowNumber; this.txtName.Text=this.dataGrid1[row,0].ToString(); this.txtHomePhone.Text=this.dataGrid1[row,1].ToString(); this.txtOfficePhone.Text=this.dataGrid1[row,2].ToString(); this.txtHandSet.Text=this.dataGrid1[row,3].ToString(); this.txtTouchAddress.Text=this.dataGrid1[row,4].ToString(); this.txtPostalCode.Text=this.dataGrid1[row,5].ToString(); this.txtEmail.Text=this.dataGrid1[row,6].ToString(); }

private void btnDelete_Click(object sender, System.EventArgs e) { DeleteBasicInfo del= new DeleteBasicInfo(); int ret = del.deleteInfo(this.txtName.Text); if (ret==0) { MessageBox.Show("删除失败!"); } else { bind(); MessageBox.Show("删除成功!"); } }

private void btnSelect_Click(object sender, System.EventArgs e) { SearchInfo search=new SearchInfo(); DataSet result=search.searchInfo(this.txtName.Text); this.dataGrid1.DataSource=result; this.dataGrid1.DataMember="BasicInfo"; }

} }

搜索更多相关主题的帖子: 源代码 下载 电话 
2005-08-10 18:46
host1982
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-8-7
收藏
得分:0 
以下是程序中用到的类: 1。 using System; using System.Configuration; using System.Data; using System.Data.SqlClient;

namespace AddressList { /// <summary> /// AddInfo 的摘要说明。 /// </summary> public class AddInfo { public AddInfo() { // // TOD 在此处添加构造函数逻辑 // } public int Add(string Name,string HomePhone,string OfficePhone,string HandSet,string TouchAddress,string PostalCode,string Email) { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlCommand myCommand = new SqlCommand("AddInfo", myConnection); myCommand.CommandType = CommandType.StoredProcedure;

SqlParameter parameterName = new SqlParameter("@SName", SqlDbType.NVarChar, 50); parameterName.Value = Name; myCommand.Parameters.Add(parameterName);

SqlParameter parameterHomePhone = new SqlParameter("@HomePhone", SqlDbType.NVarChar,50); parameterHomePhone.Value=HomePhone; myCommand.Parameters.Add(parameterHomePhone);

SqlParameter parameterOfficePhone = new SqlParameter("@OfficePhone", SqlDbType.NVarChar,50); parameterOfficePhone.Value=OfficePhone; myCommand.Parameters.Add(parameterOfficePhone); SqlParameter parameterHandSet = new SqlParameter("@HandSet", SqlDbType.NVarChar,50); parameterHandSet.Value=HandSet; myCommand.Parameters.Add(parameterHandSet);

SqlParameter parameterTouchAddress = new SqlParameter("@TouchAddress", SqlDbType.NVarChar,50); parameterTouchAddress.Value=TouchAddress; myCommand.Parameters.Add(parameterTouchAddress); SqlParameter parameterPostalCode = new SqlParameter("@PostalCode", SqlDbType.NVarChar,50); parameterPostalCode.Value=PostalCode; myCommand.Parameters.Add(parameterPostalCode); SqlParameter parameterEmail = new SqlParameter("@Email", SqlDbType.NVarChar,50); parameterEmail.Value=Email; myCommand.Parameters.Add(parameterEmail); SqlParameter parameterret=new SqlParameter("@ret",SqlDbType.Int); parameterret.Direction=ParameterDirection.Output; myCommand.Parameters.Add(parameterret); try { myConnection.Open(); myCommand.ExecuteNonQuery(); myConnection.Close();

} catch { return 0; } string aa=parameterret.Value.ToString(); System.Int32 ret=System.Convert.ToInt32(aa); return ret; } } } 2。 using System; using System.Configuration; using System.Data; using System.Data.SqlClient;

namespace AddressList { /// <summary> /// DeleteBasicInfo 的摘要说明。 /// </summary> public class DeleteBasicInfo { public DeleteBasicInfo() { // // TOD 在此处添加构造函数逻辑 // } public int deleteInfo(string SName) { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlCommand myCommand = new SqlCommand("DeleteInfo", myConnection); myCommand.CommandType = CommandType.StoredProcedure;

SqlParameter parameterSName = new SqlParameter("@SName", SqlDbType.NVarChar,50); parameterSName.Value = SName; myCommand.Parameters.Add(parameterSName);

SqlParameter ret =new SqlParameter("@ret",SqlDbType.Int); ret.Direction= ParameterDirection.Output; myCommand.Parameters.Add(ret);

try { myConnection.Open(); myCommand.ExecuteNonQuery(); myConnection.Close(); } catch { return 0; } return System.Convert.ToInt32(ret.Value.ToString()); }

} } 3。 using System; using System.Configuration; using System.Data; using System.Data.SqlClient;

namespace AddressList { /// <summary> /// SearchInfo 的摘要说明。 /// </summary> public class SearchInfo { public SearchInfo() { // // TOD 在此处添加构造函数逻辑 // } public DataSet searchInfo(string searchText) { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlDataAdapter adapter = new SqlDataAdapter("SearchBasicInfoByName",myConnection); adapter.SelectCommand.CommandType=CommandType.StoredProcedure; SqlParameter parameterSearch = new SqlParameter("@Search", SqlDbType.NVarChar, 255); parameterSearch.Value = searchText; adapter.SelectCommand.Parameters.Add(parameterSearch); DataSet dsr = new DataSet(); adapter.Fill(dsr,"BasicInfo"); return dsr; } public DataSet GetAddInfo() { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlDataAdapter adapter = new SqlDataAdapter("GetAddInfo",myConnection); adapter.SelectCommand.CommandType=CommandType.StoredProcedure; DataSet ds = new DataSet(); adapter.Fill(ds,"BasicInfo"); return ds; }

} } 4。 using System; using System.Configuration; using System.Data; using System.Data.SqlClient;

namespace AddressList { /// <summary> /// UpdateBasicInfo 的摘要说明。 /// </summary> public class UpdateBasicInfo { public UpdateBasicInfo() { // // TOD 在此处添加构造函数逻辑 // } public int Update(string Name,string HomePhone,string OfficePhone,string HandSet,string TouchAddress,string PostalCode,string Email) { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlCommand myCommand = new SqlCommand("InfoUpdate", myConnection); myCommand.CommandType = CommandType.StoredProcedure;

SqlParameter parameterName = new SqlParameter("@SName", SqlDbType.NVarChar, 50); parameterName.Value = Name; myCommand.Parameters.Add(parameterName);

SqlParameter parameterHomePhone = new SqlParameter("@HomePhone", SqlDbType.NVarChar,50); parameterHomePhone.Value=HomePhone; myCommand.Parameters.Add(parameterHomePhone);

SqlParameter parameterOfficePhone = new SqlParameter("@OfficePhone", SqlDbType.NVarChar,50); parameterOfficePhone.Value=OfficePhone; myCommand.Parameters.Add(parameterOfficePhone); SqlParameter parameterHandSet = new SqlParameter("@HandSet", SqlDbType.NVarChar,50); parameterHandSet.Value=HandSet; myCommand.Parameters.Add(parameterHandSet);

SqlParameter parameterTouchAddress = new SqlParameter("@TouchAddress", SqlDbType.NVarChar,50); parameterTouchAddress.Value=TouchAddress; myCommand.Parameters.Add(parameterTouchAddress); SqlParameter parameterPostalCode = new SqlParameter("@PostalCode", SqlDbType.NVarChar,50); parameterPostalCode.Value=PostalCode; myCommand.Parameters.Add(parameterPostalCode); SqlParameter parameterEmail = new SqlParameter("@Email", SqlDbType.NVarChar,50); parameterEmail.Value=Email; myCommand.Parameters.Add(parameterEmail); SqlParameter parameterret=new SqlParameter("@ret",SqlDbType.Int); parameterret.Direction=ParameterDirection.Output; myCommand.Parameters.Add(parameterret); try { myConnection.Open(); myCommand.ExecuteNonQuery(); myConnection.Close();

} catch { return 0; } string aa=parameterret.Value.ToString(); System.Int32 ret=System.Convert.ToInt32(aa); return ret; } } }


共同切磋,一起进步 电子邮件:host1982@ QQ:156018083
2005-08-10 18:47
host1982
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-8-7
收藏
得分:0 
请同志们给点意见,程序中还有就是功能不太完善,请老鸟指出,不胜感激

共同切磋,一起进步 电子邮件:host1982@ QQ:156018083
2005-08-10 18:49
houyunqing
Rank: 1
等 级:新手上路
帖 子:476
专家分:0
注 册:2005-4-1
收藏
得分:0 
你的界面代码哪去了呢?
InitializeComponent()
摆上来

寻求挑战,追求完美 Oh,my god!
2005-08-11 15:31
冰封谷主
Rank: 4
等 级:贵宾
威 望:10
帖 子:226
专家分:20
注 册:2005-1-7
收藏
得分:0 
纯是代码,头都看大了,,,也不写注释,

2005-08-11 16:16
houyunqing
Rank: 1
等 级:新手上路
帖 子:476
专家分:0
注 册:2005-4-1
收藏
得分:0 
哈哈,看样子我的"代码素质"比你好哟,我没头晕呀~

寻求挑战,追求完美 Oh,my god!
2005-08-11 16:20
梦幻情缘
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:769
专家分:20
注 册:2005-4-4
收藏
得分:0 
代码虽然很壮观,但看起来不爽!
2005-08-11 16:39
host1982
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-8-7
收藏
得分:0 

#region Windows Form Designer generated code /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AddressList)); this.AddInfo = new System.Windows.Forms.GroupBox(); this.btnAdd = new System.Windows.Forms.Button(); this.txtEmail = new System.Windows.Forms.TextBox(); this.txtPostalCode = new System.Windows.Forms.TextBox(); this.txtTouchAddress = new System.Windows.Forms.TextBox(); this.txtHandSet = new System.Windows.Forms.TextBox(); this.txtOfficePhone = new System.Windows.Forms.TextBox(); this.txtHomePhone = new System.Windows.Forms.TextBox(); this.txtName = new System.Windows.Forms.TextBox(); this.lblEmail = new System.Windows.Forms.Label(); this.lblPostalcode = new System.Windows.Forms.Label(); this.lblTouchAddress = new System.Windows.Forms.Label(); this.lblHandSet = new System.Windows.Forms.Label(); this.lblOfficePhone = new System.Windows.Forms.Label(); this.lblHomePhone = new System.Windows.Forms.Label(); this.lblName = new System.Windows.Forms.Label(); this.ExtendOperation = new System.Windows.Forms.GroupBox(); this.lblNote = new System.Windows.Forms.Label(); this.btnSelect = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnModify = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.dataGrid1 = new System.Windows.Forms.DataGrid(); this.AddInfo.SuspendLayout(); this.ExtendOperation.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); this.SuspendLayout(); // // AddInfo // this.AddInfo.Controls.AddRange(new System.Windows.Forms.Control[] { this.btnAdd, this.txtEmail, this.txtPostalCode, this.txtTouchAddress, this.txtHandSet, this.txtOfficePhone, this.txtHomePhone, this.txtName, this.lblEmail, this.lblPostalcode, this.lblTouchAddress, this.lblHandSet, this.lblOfficePhone, this.lblHomePhone, this.lblName}); this.AddInfo.Location = new System.Drawing.Point(8, 8); this.AddInfo.Name = "AddInfo"; this.AddInfo.Size = new System.Drawing.Size(352, 232); this.AddInfo.TabIndex = 0; this.AddInfo.TabStop = false; this.AddInfo.Text = "添加信息"; // // btnAdd // this.btnAdd.Location = new System.Drawing.Point(232, 152); this.btnAdd.Name = "btnAdd"; this.btnAdd.TabIndex = 14; this.btnAdd.Text = "添 加 "; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // txtEmail // this.txtEmail.Location = new System.Drawing.Point(240, 112); this.txtEmail.Name = "txtEmail"; this.txtEmail.TabIndex = 13; this.txtEmail.Text = ""; // // txtPostalCode // this.txtPostalCode.Location = new System.Drawing.Point(240, 72); this.txtPostalCode.Name = "txtPostalCode"; this.txtPostalCode.TabIndex = 12; this.txtPostalCode.Text = ""; // // txtTouchAddress // this.txtTouchAddress.Location = new System.Drawing.Point(240, 32); this.txtTouchAddress.Name = "txtTouchAddress"; this.txtTouchAddress.TabIndex = 11; this.txtTouchAddress.Text = ""; // // txtHandSet // this.txtHandSet.Location = new System.Drawing.Point(72, 152); this.txtHandSet.Name = "txtHandSet"; this.txtHandSet.TabIndex = 10; this.txtHandSet.Text = ""; // // txtOfficePhone // this.txtOfficePhone.Location = new System.Drawing.Point(72, 112); this.txtOfficePhone.Name = "txtOfficePhone"; this.txtOfficePhone.TabIndex = 9; this.txtOfficePhone.Text = ""; // // txtHomePhone // this.txtHomePhone.Location = new System.Drawing.Point(72, 72); this.txtHomePhone.Name = "txtHomePhone"; this.txtHomePhone.TabIndex = 8; this.txtHomePhone.Text = ""; // // txtName // this.txtName.Location = new System.Drawing.Point(72, 32); this.txtName.Name = "txtName"; this.txtName.TabIndex = 7; this.txtName.Text = ""; // // lblEmail // this.lblEmail.Location = new System.Drawing.Point(184, 112); this.lblEmail.Name = "lblEmail"; this.lblEmail.Size = new System.Drawing.Size(56, 24); this.lblEmail.TabIndex = 6; this.lblEmail.Text = "电子邮件"; this.lblEmail.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblPostalcode // this.lblPostalcode.Location = new System.Drawing.Point(184, 72); this.lblPostalcode.Name = "lblPostalcode"; this.lblPostalcode.Size = new System.Drawing.Size(56, 24); this.lblPostalcode.TabIndex = 5; this.lblPostalcode.Text = "邮政编码"; this.lblPostalcode.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblTouchAddress // this.lblTouchAddress.Location = new System.Drawing.Point(184, 32); this.lblTouchAddress.Name = "lblTouchAddress"; this.lblTouchAddress.Size = new System.Drawing.Size(56, 24); this.lblTouchAddress.TabIndex = 4; this.lblTouchAddress.Text = "通信地址"; this.lblTouchAddress.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblHandSet // this.lblHandSet.Location = new System.Drawing.Point(16, 152); this.lblHandSet.Name = "lblHandSet"; this.lblHandSet.Size = new System.Drawing.Size(56, 24); this.lblHandSet.TabIndex = 3; this.lblHandSet.Text = "手机号码"; this.lblHandSet.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblOfficePhone // this.lblOfficePhone.Location = new System.Drawing.Point(16, 112); this.lblOfficePhone.Name = "lblOfficePhone"; this.lblOfficePhone.Size = new System.Drawing.Size(56, 24); this.lblOfficePhone.TabIndex = 2; this.lblOfficePhone.Text = "办公电话"; this.lblOfficePhone.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblHomePhone // this.lblHomePhone.Location = new System.Drawing.Point(16, 72); this.lblHomePhone.Name = "lblHomePhone"; this.lblHomePhone.Size = new System.Drawing.Size(56, 24); this.lblHomePhone.TabIndex = 1; this.lblHomePhone.Text = "住宅电话"; this.lblHomePhone.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblName // this.lblName.Location = new System.Drawing.Point(16, 32); this.lblName.Name = "lblName"; this.lblName.Size = new System.Drawing.Size(56, 24); this.lblName.TabIndex = 0; this.lblName.Text = "姓 名"; this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // ExtendOperation // this.ExtendOperation.Controls.AddRange(new System.Windows.Forms.Control[] { this.lblNote, this.btnSelect, this.btnDelete, this.btnModify, this.pictureBox1}); this.ExtendOperation.Location = new System.Drawing.Point(368, 8); this.ExtendOperation.Name = "ExtendOperation"; this.ExtendOperation.Size = new System.Drawing.Size(264, 232); this.ExtendOperation.TabIndex = 1; this.ExtendOperation.TabStop = false; this.ExtendOperation.Text = "扩展操作"; // // lblNote // this.lblNote.ForeColor = System.Drawing.Color.Red; this.lblNote.Location = new System.Drawing.Point(16, 184); this.lblNote.Name = "lblNote"; this.lblNote.Size = new System.Drawing.Size(240, 40); this.lblNote.TabIndex = 4; this.lblNote.Text = "注意:修改和删除操作必须先选定行,查询操作必须输入姓名"; // // btnSelect // this.btnSelect.Location = new System.Drawing.Point(176, 152); this.btnSelect.Name = "btnSelect"; this.btnSelect.TabIndex = 3; this.btnSelect.Text = "查 询"; this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); // // btnDelete // this.btnDelete.Location = new System.Drawing.Point(96, 152); this.btnDelete.Name = "btnDelete"; this.btnDelete.TabIndex = 2; this.btnDelete.Text = "删 除"; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnModify // this.btnModify.Location = new System.Drawing.Point(16, 152); this.btnModify.Name = "btnModify"; this.btnModify.TabIndex = 1; this.btnModify.Text = "修 改"; this.btnModify.Click += new System.EventHandler(this.btnModify_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(16, 32); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(240, 104); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // dataGrid1 // this.dataGrid1.DataMember = ""; this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGrid1.Location = new System.Drawing.Point(8, 248); this.dataGrid1.Name = "dataGrid1"; this.dataGrid1.Size = new System.Drawing.Size(624, 216); this.dataGrid1.TabIndex = 2; this.dataGrid1.Click += new System.EventHandler(this.dataGrid1_Click); // // AddressList // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(640, 501); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.dataGrid1, this.ExtendOperation, this.AddInfo}); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "AddressList"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "个人电话本"; this.Load += new System.EventHandler(this.AddressList_Load); this.AddInfo.ResumeLayout(false); this.ExtendOperation.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); this.ResumeLayout(false);

} #endregion


共同切磋,一起进步 电子邮件:host1982@ QQ:156018083
2005-08-11 21:13
程序人
Rank: 2
等 级:新手上路
威 望:3
帖 子:195
专家分:0
注 册:2005-4-5
收藏
得分:0 
拜托,你把你的源程序做成rar上传上来不就ok了,还这么大费版面的!!

洒家靠!悟空:我给你说过N遍了,叫你不要说我帅!虽然我承认我很帅!!
2005-08-11 21:24
kr1983
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2005-5-22
收藏
得分:0 
不错,不过太长了,我坚持不住了,下次再看把,支持一下楼主!
2005-08-11 21:28
快速回复:[下载]本人做得电话本的源代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019577 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved