版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
驗(yàn)后填寫。年級(jí)+專業(yè)班+學(xué)號(hào)++實(shí)驗(yàn)序號(hào)其中“、學(xué)院、專業(yè)”用中文,實(shí)驗(yàn)序號(hào)用01、02、03…10等。例如:10生物工程01班 張三01.rar誤,用≈表示半對(duì)半錯(cuò)。在“教師評(píng)價(jià)”欄中“評(píng)價(jià)教師簽名”填寫評(píng)價(jià)教師5112□驗(yàn)證性?設(shè)計(jì)性□ 1、熟悉VisualStudio20102232、設(shè)計(jì)菜單、;4.提交:*.sln、*.vb、*.vbproj、*.mdf等與系統(tǒng)相關(guān)的文件(打包從工具箱拖放一個(gè)sqlconnection控件和一個(gè)sqldataadapterPublicClassPublicstudatasetAsDataSet=NewDataSetPubliclinenum,linesumAsIntegerPublicSublbmsg.Textì|明??:êo第ì¨2"&Str(linenum1&??,ê?共2&Str(linesum)&"條??"Iflinesum>0DimmyrowAsDataRow=studataset.Tables("tblstudent").Rows(linenum)txtstuid.Text=myrow("stuid")txtstuname.Text=myrow("stuname")txtstuage.Text=myrow("stuage") .Text=myrow("stu txtcolid.Text=myrow("colid")lbmsg.Text?D記?錄?了¢?!ê?"EndIfEndPrivateSubfrmstudent_Load(senderAsSystem.Object,eAsSystem.EventArgs)dastudent.Fill(studataset,Dimcurrrow()AsDataRow=studataset.Tables("tblstudent").Select(Nothing,Nothing,DataViewRowState.CurrentRows)linesum=currrow.Lengthlinenum=0bnsave.Enabled=FalseEndPrivateSubbnfirst_Click(senderAsSystem.Object,eAsSystem.EventArgs)Handleslinenum=0EndPrivateSubbnnext_Click(senderAsSystem.Object,eAsSystem.EventArgs)HandlesIflinenum<linesum-1Thenlinenum=linenum+1EndIfEndSubPrivateSubbnprev_Click(senderAsSystem.Object,eAsSystem.EventArgs)HandlesIflinenum>0Thenlinenum=linenum-1EndIfEndSubPrivateSubbnlast_Click(senderAsSystem.Object,eAsSystem.EventArgs)Handleslinenum=linesum-1EndPrivateSubbnadd_Click(senderAsSystem.Object,eAsSystem.EventArgs)Handlestxtstuid.Text=""txtstuname.Text=""txtstuage.Text="" .Text=""txtcolid.Text=""bnsave.Enabled=Truebndel.Enabled=Falsebnmodif.Enabled=Falsebnadd.Enabled=FalseEndPrivateSubbnsave_Click(senderAsSystem.Object,eAsSystem.EventArgs)HandlesIftxtstuid.Text=""dastudent.Fill(studataset,DimmyrowAsDataRow=myrow("stuid")=txtstuid.Textmyrow("stuname")=txtstuname.Textmyrow("stuage")=Val(txtstuage.Text) ")=txtstu myrow("colid")=txtcolid.Textdastudent.Update(studataset,"tblstudent")linesum=linesum+1linenum=linesum-1bnadd.Enabled=Truebndel.Enabled=Truebnmodif.Enabled=Truebnsave.Enabled=EndIfEndSubPrivateSubbndel_Click(senderAsSystem.Object,eAsSystem.EventArgs)HandlesDimmyrowAsDataRowIflinesum>0Thenmyrow=studataset.Tables("tblstudent").Rows(linenum)'dastudent.Fill(studataset,"tblstudent")dastudent.Update(studataset,"tblstudent")linesum=linesum-1Iflinenum=linesumThenlinenum=linenum-EndIfEndIfEndPrivateSubbnmodif_Click(senderAsSystem.Object,eAsSystem.EventArgs)HandlesDimmyrowAsDataRow=studataset.Tables("tblstudent").Rows(linenum)myrow("stuid")=txtstuid.Textmyrow("stuname")=txtstuname.Textmyrow("stuage")=txtstuage.Text ")=txtstu myrow("colid")=txtcolid.Textdastudent.Update(studataset,"tblstudent")EndSubEndClass5.PublicClassPrivateSubbnshowall_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)Handlesbnshowall.ClickDimstrSQLAsDimmyDataSetAsNewstrSQL="select*fromtblstudent" mandText= dastudent.Fill(myDataSet,"tblStudent")DataGrid1.DataSource=myDataSet.Tables("tblStudent")EndPrivateSubbnfind_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)Handlesbnfind.ClickDimstrSQLAsString,strWhereAsString,str AsString,flagAsIntegerDimmyDataSetAsNewDataSetflag=strSQL="select*fromtblstudentwhere"strWhere=""If ame.Checked=TruestrWhere="StuNameLike"+"'%"+Trim(txtname.Text)+"%'"flag=1End'strSQL=strSQL+strWhereIf .Checked=TrueIfradiomale.CheckedTrueThen ="男D" EndIfIfflag=0strWhere=" ='"+ +strWhere=strWhere+"and ='"+ +EndIfflag=1EndstrSQ
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 四川省綿陽(yáng)市梓潼縣2026屆九年級(jí)上學(xué)期1月期末考試語(yǔ)文試卷答案
- 2026年廣東省地理中考自編模擬題(一)適用于廣東省茂名市(含答案)
- 衛(wèi)生面試真題及答案
- 讀后感的作文300字合集7篇2
- 電能質(zhì)量檢測(cè)技術(shù)要點(diǎn)
- 社會(huì)政策學(xué)試題及答案
- 慶云縣體育考試試題及答案
- 遼寧省葫蘆島市2026屆九年級(jí)上學(xué)期期末考試語(yǔ)文試卷(含答案)
- 廣東省深圳市龍華區(qū)2024-2025學(xué)年八年級(jí)上學(xué)期期末生物地理試卷-初中地理(含答案)
- 2026 年初中英語(yǔ)《情景交際》專題練習(xí)與解析 (100 題)
- 欄桿安裝施工方案要點(diǎn)
- 2026年及未來(lái)5年中國(guó)點(diǎn)膠機(jī)行業(yè)市場(chǎng)深度分析及發(fā)展前景預(yù)測(cè)報(bào)告
- 2025四足機(jī)器人場(chǎng)景應(yīng)用發(fā)展藍(lán)皮書簡(jiǎn)版
- 2026年1月浙江省高考(首考)英語(yǔ)試題(含答案)+聽力音頻+聽力材料
- XRD儀器使用實(shí)操手冊(cè)大全
- 司法鑒定機(jī)構(gòu)工作流程及質(zhì)量控制
- 江門流態(tài)固化土施工方案
- 人民法院受理案件通知書
- 道路-磚-施工方案
- 醫(yī)院門診護(hù)士崗位職責(zé)說(shuō)明
- 【語(yǔ)文】桂林市五年級(jí)下冊(cè)期末復(fù)習(xí)試卷(含答案)
評(píng)論
0/150
提交評(píng)論