


版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、寧波大學(xué)實驗實驗課程名稱:數(shù)據(jù)庫應(yīng)用與開發(fā)院:學(xué)專業(yè):信息管理與信息系統(tǒng)指導(dǎo) 教師:人:學(xué)號信管班級:期:201620172學(xué)商科實驗教學(xué)中心制實驗成績實驗項目名稱Windows 應(yīng)用程序開發(fā)設(shè)計一、實驗?zāi)康呐c要求:完成書上實驗 5-1 和實驗 5-2二、實驗設(shè)備及:電腦、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)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 沖壓設(shè)備采購技術(shù)協(xié)議書
- 挖孔樁安全協(xié)議書
- 黑小麥種植協(xié)議書
- 美日半導(dǎo)體協(xié)議書
- 防火災(zāi)安全協(xié)議書
- 天水供銷社協(xié)議書
- 社保轉(zhuǎn)公司協(xié)議書
- 婚前防出軌協(xié)議書
- 騰訊和保密協(xié)議書
- 房屋歸子女協(xié)議書
- 紅色教育項目財務(wù)分析(3篇模板)
- 醫(yī)院重癥監(jiān)護室感染監(jiān)控指南
- 人教版二年級下冊口算題天天練1000道可打印帶答案
- 2022北京東城六年級畢業(yè)考英語試題含答案
- 部編版三年級語文下冊口語交際:勸告 課件
- 山東省煙臺市萊州市2023-2024學(xué)年八年級下學(xué)期期中數(shù)學(xué)試題
- 日本近現(xiàn)代文學(xué)概論
- 海水的淡化技術(shù)及應(yīng)用
- 叮咚智能鎖說明書
- 嘉世咨詢 -2024眼科診療行業(yè)簡析報告
- 手機拍攝短視頻
評論
0/150
提交評論