


版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、寧波大學實驗實驗課程名稱:數(shù)據(jù)庫應用與開發(fā)院:學專業(yè):信息管理與信息系統(tǒng)指導 教師:人:學號信管班級:期:201620172學商科實驗教學中心制實驗成績實驗項目名稱Windows 應用程序開發(fā)設計一、實驗目的與要求:完成書上實驗 5-1 和實驗 5-2二、實驗設備及:電腦、Vs2010三、實驗方法(原理、流程圖)四、實驗過程、步驟及內(nèi)容實驗5-1: Form1的代碼: using System;using System.Collections.Generic; usingponentM; using System.Data;using System.Drawing;
2、using System.Linq; using System.Text;using System.Windows.Forms;namespace 實驗5_1public partial class Form1 : Formpublic Form1()ponent();private void 退出ToolStripItem_Click(objecder, EventArgs e)this.Close();private void 打開ToolStripItem_Click(objecder, EventArgs e)private void linkLabel1_LinkClicked(ob
3、jecder, LinkLabelLinkClickedEventArgs e)MyForm v = new MyForm(); this.Hide();v.Show();點擊Myform的代碼: using System;using System.Collections.Generic; usingponentM; using System.Data;using System.Drawing; using System.Linq; using System.Text;using System.Windows.Forms;namespace 實驗5_1public partial class
4、MyForm : Formpublic MyForm()ponent();private void textBox1_TextChanged(objecder, EventArgs e)private void button1_Click(objecder, EventArgs e)this.Close();private void button2_Click(objecder, EventArgs e)if (this.checkBox1.Checked = true)this.textBox1.Text = textBox1.Text + checkBox1.Text + 、;if (th
5、is.checkBox2.Checked = true)this.textBox1.Text = textBox1.Text + checkBox2.Text + 、;if (this.checkBox3.Checked = true)this.textBox1.Text = textBox1.Text + checkBox3.Text + 、;if (this.checkBox4.Checked = true)this.textBox1.Text = textBox1.Text + checkBox4.Text + 、;if (this.checkBox5.Checked = true)th
6、is.textBox1.Text = textBox1.Text + checkBox5.Text + 、;if (this.checkBox6.Checked = true)this.textBox1.Text = textBox1.Text + checkBox6.Text + 、;private void radioButton1_CheckedChanged(objecder, EventArgs e)if (this.radioButton1.Checked = true) this.BackColor = Color.Red;private void radioButton2_Ch
7、eckedChanged(objecder,EventArgs e)if (this.radioButton2.Checked = true) this.BackColor = Colreen;private void radioButton3_CheckedChanged(objecder, EventArgs e)if (this.radioButton3.Checked = true) this.BackColor = Color.Blue;背景變換成選擇的顏色,文本框顯示所選擇的喜歡的顏色實驗52:using System;using System.Collections.Generi
8、c; usingponentM; using System.Data;using System.Drawing; using System.Linq; using System.Text;using System.Windows.Forms;namespace 實驗5_2public partial class Form1 : Formpublic Form1()ponent();private void button1_Click(objecder, EventArgs e)listBox1.Items.Add(書名: + textBox1.Text + ,: + textBox2.Text);textBox1.Text = ; textBox1.Text = ;private void button2_Click(objecder, EventArgs e)if (listBox1.SelectedIndex != -1)listBox1.It
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 健康人性課課件
- 快樂睡眠整體方案課件
- 春季易發(fā)疾病預防指南
- T/TMAC 009.F-2019科技服務機構評價導則
- 新生兒窒息綜合防治策略
- 衛(wèi)生間插花課件
- 長郡教育集團2025年九年級《化學》上冊期中試題與參考答案
- 2024急危重癥患者手術護理專家共識解讀
- 室內(nèi)設計公司裝修服務全流程解析
- 腸營養(yǎng)液處方設計
- 人教版二年級下冊口算題天天練1000道可打印帶答案
- 2022北京東城六年級畢業(yè)考英語試題含答案
- 部編版三年級語文下冊口語交際:勸告 課件
- 山東省煙臺市萊州市2023-2024學年八年級下學期期中數(shù)學試題
- 日本近現(xiàn)代文學概論
- 海水的淡化技術及應用
- 叮咚智能鎖說明書
- 嘉世咨詢 -2024眼科診療行業(yè)簡析報告
- 手機拍攝短視頻
- DB32T 4719-2024酒店服務與廚師職業(yè)技能等級認定工作規(guī)范
- 2024年湖南省郴州湘能農(nóng)電服務有限公司招聘筆試參考題庫含答案解析
評論
0/150
提交評論