上机实习报告总结结尾.docx
《上机实习报告总结结尾.docx》由会员分享,可在线阅读,更多相关《上机实习报告总结结尾.docx(25页珍藏版)》请在第壹文秘上搜索。
1、上机实习报告总结结尾代码如下;usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplicationl(publicpartialclassForm5:Form(publicForm5()(InitializeConiponent();)privatevoidbuttonlClick(objectsender,l
2、ogofrom=newlogo();from.Show();EventArgse)EventArgs e)privatevoidbutton2Click(objectsender,Form2from=newForm2();from.Show();privatevoidbutton3Click(objectsender,EventArgse)s:/.xielw.shijuan试卷(Form3from=newForm3();from.Show();)EventArgs e) privatevoidbutton4Click(objectsender,Form4from二newForm4();from
3、.Show();)代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplicationlpublicpartialclasslogo:Formpubliclogo()InitializeComponentO;)privatevoidFormlLoa
4、d(objectsender,EventArgse)()privatevoidbuttonlClick(objectsender,EventArgse)stringconnstring=DataSource=Panlunzhao;InitialCatalog=BOOKSTORE.MDF;IntegratedSecurity=Truezz;SqlConnectionconn=newSqlConnection(Connstring);conn.Open();stringusername=this,username.Text.ToStringO;stringpassword=this,passwor
5、d.Text.ToStringO;SqlCommandm二conn.CreateCommand();m.CommandText=select*frommanagewhereUSername=+username+andPaSSWord=+password+;SqlDataReadersqlda=m.ExecuteReaderO;if(sqlda.Read()(ifs:/.xielw./gongzuobaogao/工作报告(SqIdapassword.ToString().Trim()=password)/MessageBox.Show(恭喜您登陆成功!,登陆成功!,MessageBoxButto
6、ns.OK,MessageBoxIcon.Information);/Form2f=newForm2();/f.Show();Form3from=newForm3();from.Show();)elseMessageBox.Show(密码错误,请重新输入!,错误,MessageBoxButtons.OK,MessageBoxIcon.Information);)elseMeSSageBox.Show(此用户不存在,请您!,MessageBoxButtons.OK,MessageBoxIcon.Information);)conn.CloseO;s:/.xielw.Zdangtuangongzu
7、ozongjie/党团工作总结sqlda.CloseO;)privatevoidbutton2Click(objectsender,EventArgse)username.Text二;password.Text=;)三.会员管理模块代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.CoinponentModel;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 上机 实习 报告 总结 结尾