版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jì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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年永康市信訪局工作人員招聘備考題庫及參考答案詳解1套
- 2026年紹興市外服派駐越城機(jī)關(guān)單位景點講解員招聘備考題庫完整答案詳解
- 2026年漯河市郾城區(qū)事業(yè)單位人才引進(jìn)備考題庫及1套參考答案詳解
- 2026年泉州市醫(yī)學(xué)會招聘工作人員的備考題庫附答案詳解
- 公共交通行業(yè)服務(wù)質(zhì)量評價制度
- 中國礦業(yè)大學(xué)(北京)2026年度校聘非教師崗位招聘備考題庫完整答案詳解
- 2026年漯河市氣象局人才引進(jìn)備考題庫及完整答案詳解一套
- 中國熱帶農(nóng)業(yè)科學(xué)院湛江實驗站2026年第一批公開招聘工作人員備考題庫完整參考答案詳解
- 企業(yè)員工招聘錄用管理制度
- 中學(xué)網(wǎng)絡(luò)與信息安全管理制度
- 水處理設(shè)備維護(hù)課件
- 架梁人員安全教育培訓(xùn)課件
- 槐鄉(xiāng)五月課件教學(xué)
- 江蘇省蘇州市2024-2025學(xué)年七年級上學(xué)期期末陽光調(diào)研英語試卷(含答案解析)
- 人教版八年級道德與法治上冊復(fù)習(xí)提綱
- 普陀區(qū)一模高三數(shù)學(xué)試卷
- 光熱儲能電站發(fā)電項目項目管理各階段主要任務(wù)
- 2026年中考語文復(fù)習(xí):非連續(xù)性文本閱讀 中考真題練習(xí)題匯編(含答案解析)
- 醫(yī)療工作者榜樣學(xué)習(xí)心得體會
- 部隊安全駕駛課件
- 2025年江蘇保安員考試題庫及答案
評論
0/150
提交評論