綜合設(shè)計(jì)實(shí)驗(yàn)成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)_第1頁(yè)
綜合設(shè)計(jì)實(shí)驗(yàn)成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)_第2頁(yè)
綜合設(shè)計(jì)實(shí)驗(yàn)成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)_第3頁(yè)
綜合設(shè)計(jì)實(shí)驗(yàn)成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)_第4頁(yè)
綜合設(shè)計(jì)實(shí)驗(yàn)成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)_第5頁(yè)
已閱讀5頁(yè),還剩29頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、綜合設(shè)計(jì)實(shí)驗(yàn) 成語(yǔ)詞典查詢(xún)系統(tǒng)設(shè)計(jì)一、實(shí)驗(yàn)?zāi)康?了解SQL語(yǔ)言各語(yǔ)句的語(yǔ)法與使用方法;2掌握DataProvider 和DataSet兩個(gè)核心組件的常用屬性、方法的含義及使用方法;3掌握利用DataProvider 和DataSet兩個(gè)核心組件實(shí)現(xiàn)數(shù)據(jù)庫(kù)記錄的插入、修改、刪除的方法;4使學(xué)生能夠通過(guò)老師講過(guò)的內(nèi)容靈活運(yùn)用多種控件,實(shí)現(xiàn)對(duì)簡(jiǎn)單數(shù)據(jù)庫(kù)的維護(hù),能夠自行調(diào)試,顯示或保存實(shí)驗(yàn)結(jié)果。并使學(xué)生更深入的掌握面向?qū)ο蟪绦蛟O(shè)計(jì)這門(mén)課程。二、基本要求(1)創(chuàng)建成語(yǔ)詞典查詢(xún)系統(tǒng)所需的表(成語(yǔ)詞典表),并能連接上數(shù)據(jù)庫(kù)。 (2)完成對(duì)所建成語(yǔ)詞典表的插入、修改、刪除功能(3)完成對(duì)成語(yǔ)的精確和模糊查詢(xún)(

2、4)完成對(duì)成語(yǔ)詞典查詢(xún)結(jié)果保存為Word文檔及其導(dǎo)入成語(yǔ)詞典。(5)為完成上述功能,還需運(yùn)用菜單、工具條等多種控件三、實(shí)驗(yàn)步驟:1. 創(chuàng)建數(shù)據(jù)庫(kù):打開(kāi)SQL Server Management Studio,創(chuàng)建數(shù)據(jù)庫(kù)”成語(yǔ)字典庫(kù)“然后新建一個(gè)名為成語(yǔ)字典表的表,如圖1所示。圖12. 創(chuàng)建項(xiàng)目:在Microsoft Visual Studio 2010中創(chuàng)建一個(gè)名為“成語(yǔ)字典應(yīng)用”的Windows窗體應(yīng)用程序項(xiàng)目。3. 設(shè)計(jì)界面:在空白窗體中添加菜單Button、Label、TextBox、ComboBox、RichTextBox、DataGridView、MenuStrip、SqlConne

3、ction、SqlDataAdapter、SqlCommand、SaveFileDialog、OpenFileDialog控件,對(duì)控件的屬性進(jìn)行修改,如表1所示。并且對(duì)菜單欄上的選項(xiàng)設(shè)置快捷鍵和訪問(wèn)鍵??丶Q(chēng)屬性屬性值MenuStripItems瀏覽(查看所有、保存結(jié)果、退出)、查詢(xún)(精確查詢(xún)、模糊查詢(xún))、添加、刪除、修改、退出Label1Text選擇查詢(xún)方式:GroupBox1Text操作界面Label2Text設(shè)置查詢(xún)值:Label3Text顯示界面:Label4Text拼音:Label5Text成語(yǔ):Label6Text備注:Label7Text拼音簡(jiǎn)寫(xiě):Label8Textlabel

4、8button1Text精確查詢(xún)button2Text模糊查詢(xún)button3Text添加button4Text修改button5Text刪除button6Text導(dǎo)出到Word文件Button7Text從Word文件中導(dǎo)入comboBox1Items拼音、成語(yǔ)、備注、拼音簡(jiǎn)寫(xiě)表1控件屬性及屬性值圖二圖二為進(jìn)行整體布局后窗體效果圖。4. 在Form1.h 編寫(xiě)菜單、按鈕、標(biāo)簽的事件(單擊事件)。(1)在窗體的頭文件中引用System:Data:SqlClient命名空間后,才可以使用該命名空間內(nèi)定義的如SqlConnection等類(lèi)的對(duì)象。因此需要在窗體的頭文件中添加如下語(yǔ)句: using na

5、mespace System:Data:SqlClient;因?yàn)橐形募膶?dǎo)出和導(dǎo)入所以要在命名空間部分加上:using namespace System:IO;并且在窗體類(lèi)中要定義一個(gè)SqlConnection 類(lèi)型的對(duì)象con,并在Form1類(lèi)的構(gòu)造函數(shù)中進(jìn)行初始化。代碼如下所示。 Form1(void)InitializeComponent();/TODO: 在此處添加構(gòu)造函數(shù)代碼/con=gcnew SqlConnection();con->ConnectionString = L"Data Source=.;Initial Catalog=成語(yǔ)字典庫(kù);Integrat

6、ed Security=True"/用Connection控件鏈接到服務(wù)器名為”.“數(shù)據(jù)庫(kù)名為“成語(yǔ)字典庫(kù)“,用windows身份驗(yàn)證方式登陸SqlConnection con; /在窗體的頭文件中定義一個(gè)con(2)在視圖設(shè)計(jì)器下點(diǎn)擊菜單欄“瀏覽”雙擊“查看所有”便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 查看所有ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) String sql="select * from 成語(yǔ)字典表"/定義了sql字符串

7、,其內(nèi)容為sqlsever數(shù)據(jù)庫(kù)的查詢(xún)語(yǔ)句 DataSet ds=gcnew DataSet();/定義了數(shù)據(jù)集的對(duì)象ds SqlDataAdapter ourda=gcnew SqlDataAdapter(sql,con); try /后面寫(xiě)可能發(fā)生的異常事件 ourda->Fill(ds,"zd"); this->dataGridView1->DataSource=ds->Tables"zd"/ dataGridView1中顯示表中的內(nèi)容 con->Open(); if (con->State=Connection

8、State:Open) String sql= "select count(*) from 成語(yǔ)字典表" SqlCommand cmd = gcnew SqlCommand( sql,con); String myinformation="表中成語(yǔ)的總數(shù)是: "+ cmd->ExecuteScalar()->ToString() +" 條" label8->Text=myinformation; /label8顯示表中成語(yǔ)的總數(shù) if (con->State=ConnectionState:Open) con-

9、>Close(); catch(System:Data:SqlClient:SqlException ex)/顯示異常信息 MessageBox:Show("數(shù)據(jù)的異常信息是:"+ex->Message,"提示信息"); (3)在視圖設(shè)計(jì)器下點(diǎn)擊菜單欄“查詢(xún)”雙擊“精確查詢(xún)”便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 精確查詢(xún)ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) String sql= " select

10、* from 成語(yǔ)字典表 where "+comboBox1->Text+" ='"+textBox1->Text+"'" MessageBox:Show(sql);/顯示sql語(yǔ)句 DataTable ourtable=gcnew DataTable(); SqlDataReaderrd; SqlCommandcmd=gcnew SqlCommand( sql,con); SqlDataAdapter ourda = gcnew SqlDataAdapter( sql,con); if(textBox1->T

11、ext="") MessageBox:Show("請(qǐng)輸入要查找成語(yǔ)的相關(guān)信息"); return; Try/將查詢(xún)到的數(shù)據(jù)添加到富文本框中為導(dǎo)出做準(zhǔn)備 con->Open(); rd=cmd->ExecuteReader(); if(rd->Read() richTextBox1->Text+=rd"拼音"->ToString()+"t" richTextBox1->Text+=rd"成語(yǔ)"->ToString()+"t" richT

12、extBox1->Text+=rd"備注"->ToString()+"t" richTextBox1->Text+=rd"拼音簡(jiǎn)寫(xiě)"->ToString()+"n" catch(System:Data:SqlClient:SqlException ex) MessageBox:Show("數(shù)據(jù)異常信息是:"+ex->Errors,"提示信息"); return; finally rd->Close(); if(con->State=C

13、onnectionState:Open) con->Close(); try ourda->Fill(ourtable); this->dataGridView1->DataSource=ourtable; catch(System:Data:SqlClient:SqlException ex) MessageBox:Show("數(shù)據(jù)異常信息是:"+ex->Errors,"提示信息"); (4)在視圖設(shè)計(jì)器下點(diǎn)擊菜單欄“查詢(xún)”雙擊“模糊查詢(xún)”便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。模糊查詢(xún)的代碼只需將sql查詢(xún)語(yǔ)句變?yōu)镾tri

14、ng sql= " select * from 成語(yǔ)字典表 where "+comboBox1->Text+" like'%"+textBox1->Text+"%'"(5)在視圖設(shè)計(jì)器下雙擊菜單欄里“添加”項(xiàng)便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 添加ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) if(textBox3->Text="") MessageBo

15、x:Show("添加的對(duì)象內(nèi)容不能為空"); return; try con->Open(); if (con->State=ConnectionState:Open) Stringsql="insert into 成語(yǔ)字典表(拼音,成語(yǔ),備注,拼音簡(jiǎn)寫(xiě))values('"+textBox2->Text+"','"+textBox3->Text+"','"+textBox4->Text+"','"+textBo

16、x5->Text+"')" MessageBox:Show(sql); SqlCommandcmd=gcnew SqlCommand(sql,con); cmd->ExecuteNonQuery(); MessageBox:Show("添加成功記錄"); catch(SqlExceptionex) MessageBox:Show("數(shù)據(jù)的異常信息是:"+ex->Message,"提示信息"); finally if(con->State=ConnectionState:Open) c

17、on ->Close(); (6)在視圖設(shè)計(jì)器下雙擊菜單欄里“修改”項(xiàng)便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 修改ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) String sql= " update 成語(yǔ)字典表 set "+comboBox1->Text+" ='"+textBox2->Text+"' where " +comboBox1->Text+" =&

18、#39;"+textBox1->Text+"'" MessageBox:Show(sql); DataTable ourtable=gcnew DataTable(); SqlDataAdapter ourda = gcnew SqlDataAdapter( sql,con); try ourda->Fill(ourtable); catch(System:Data:SqlClient:SqlException ex) MessageBox:Show("數(shù)據(jù)的異常信息是:"+ex->Message,"提示信息

19、"); (7)在視圖設(shè)計(jì)器下雙擊菜單欄里“刪除”項(xiàng)便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 刪除ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) if(comboBox1->Text=""|textBox1->Text="")/選擇刪除方式和設(shè)置刪除值不能為空 MessageBox:Show("刪除對(duì)象的內(nèi)容不能為空"); return; if(Windows:Forms:DialogResul

20、t:OK!=MessageBox:Show("確定要?jiǎng)h除記錄嗎?","刪除",MessageBoxButtons:OKCancel) return;/如果點(diǎn)擊取消則返回 try con->Open(); if (con->State=ConnectionState:Open) String sql= " delete from 成語(yǔ)字典表 where "+comboBox1->Text+" ='"+textBox1->Text+"'" MessageBox

21、:Show(sql); SqlCommand cmd = gcnew SqlCommand( sql,con); cmd->ExecuteNonQuery(); MessageBox:Show("您已經(jīng)成功刪除"+comboBox1->Text+" ='"+textBox1->Text+"'"+"的記錄"); catch( SqlException ex) MessageBox:Show("數(shù)據(jù)的異常信息是:"+ex->Message,"提示信息

22、"); finally if (con->State=ConnectionState:Open) con->Close(); (8)在視圖設(shè)計(jì)器下雙擊菜單欄里“退出”項(xiàng)便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void 退出ToolStripMenuItem_Click(System:Object sender, System:EventArgs e) this->Close(); (9)在視圖設(shè)計(jì)器下雙擊 “導(dǎo)出到Word文件”按鈕便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼,思路是將富文本框中的內(nèi)容導(dǎo)出到word。private: Syste

23、m:Void button6_Click(System:Object sender, System:EventArgs e) if(saveFileDialog1->ShowDialog()=Windows:Forms:DialogResult:OK) StreamWriter str=File:CreateText(saveFileDialog1->FileName); str->Write(richTextBox1->Text);/內(nèi)容從richTextBox1寫(xiě)入到word str->Close(); (10)在視圖設(shè)計(jì)器下雙擊 “從Word文件中導(dǎo)入”按鈕

24、便進(jìn)入此按鍵的單擊事件函數(shù)下編寫(xiě)代碼。private: System:Void button7_Click(System:Object sender, System:EventArgs e) openFileDialog1->InitialDirectory="E:"/設(shè)置了起始目錄openFileDialog1->Filter="富文本文件(*.rtf)|*.rtf|文本文件(*.doc)|*.doc"/選擇文件類(lèi)型 if (System:Windows:Forms:DialogResult:OK=openFileDialog1->S

25、howDialog() srtFileName=openFileDialog1->FileName; StreamReader sd=File:OpenText(srtFileName); this->richTextBox1->Text="" this->richTextBox1->Text=sd->ReadToEnd();/內(nèi)容添加到richTextBox1中 sd->Close(); 四窗體運(yùn)行和調(diào)試按下啟動(dòng)調(diào)試(F5)編譯成功,如果有錯(cuò)誤則應(yīng)根據(jù)錯(cuò)誤信息和位置找到錯(cuò)誤并改正。也可以利用設(shè)置斷點(diǎn)的方式來(lái)進(jìn)行排錯(cuò)。我在程序調(diào)試過(guò)

26、程中就遇到以下問(wèn)題:控件忘記添加,數(shù)據(jù)庫(kù)的鏈接失敗,對(duì)象引用有錯(cuò)誤等。在編寫(xiě)從word中導(dǎo)入的功能時(shí)遇到導(dǎo)入的內(nèi)容如果是漢字就有錯(cuò)誤,我就改用數(shù)據(jù)流的方式成功解決問(wèn)題。界面上的所有功能都可以使用達(dá)到了實(shí)驗(yàn)要求。五實(shí)驗(yàn)小結(jié)本次實(shí)驗(yàn)的內(nèi)容是在學(xué)習(xí)完C+與Windows窗體應(yīng)用程序的基礎(chǔ)知識(shí)數(shù)據(jù)庫(kù)SQL Server之后一次各知識(shí)點(diǎn)結(jié)合的綜合性實(shí)驗(yàn)。本次實(shí)驗(yàn)運(yùn)用所學(xué)知識(shí)對(duì)一些概念,一些知識(shí)點(diǎn)的理解更進(jìn)一步加深。能夠通過(guò)老師講的內(nèi)容靈活運(yùn)用多種控件,實(shí)現(xiàn)對(duì)簡(jiǎn)單數(shù)據(jù)庫(kù)的維護(hù),能夠自行調(diào)試,顯或保存實(shí)驗(yàn)結(jié)果。對(duì)更深入的掌握面向?qū)ο蟪绦蛟O(shè)計(jì)這門(mén)課程有很大的幫助。六代碼清單Form1.h#pragma onc

27、enamespace 成語(yǔ)字典應(yīng)用 using namespace System;using namespace System:ComponentModel;using namespace System:Collections;using namespace System:Windows:Forms;using namespace System:Data;using namespace System:Data:SqlClient;using namespace System:Drawing;using namespace System:IO;/ <summary>/ Form1 摘

28、要/ </summary>public ref class Form1 : public System:Windows:Forms:Formpublic:String srtFileName;Form1(void)InitializeComponent();/TODO: 在此處添加構(gòu)造函數(shù)代碼/con=gcnew SqlConnection();con->ConnectionString = L"Data Source=.;Initial Catalog=成語(yǔ)字典庫(kù);Integrated Security=True"SqlConnection con;pr

29、ivate: System:Data:SqlClient:SqlConnection sqlConnection1;public: private: System:Data:SqlClient:SqlCommand sqlSelectCommand1;private: System:Data:SqlClient:SqlCommand sqlInsertCommand1;private: System:Data:SqlClient:SqlCommand sqlUpdateCommand1;private: System:Data:SqlClient:SqlCommand sqlDeleteCom

30、mand1;private: System:Data:SqlClient:SqlDataAdapter sqlDataAdapter1;private: System:Data:SqlClient:SqlCommand sqlCommand1;private: System:Windows:Forms:Label label8;private: System:Windows:Forms:Label label6;private: System:Windows:Forms:Label label5;private: System:Windows:Forms:Label label4;privat

31、e: System:Windows:Forms:Button button3;private: System:Windows:Forms:Button button4;private: System:Windows:Forms:Button button5;private: System:Windows:Forms:Button button6;private: System:Windows:Forms:TextBox textBox3;private: System:Windows:Forms:Label label7;private: System:Windows:Forms:TextBo

32、x textBox5;private: System:Windows:Forms:TextBox textBox2;private: System:Windows:Forms:TextBox textBox4;private: System:Windows:Forms:GroupBox groupBox1;private: System:Windows:Forms:RichTextBox richTextBox1;private: System:Windows:Forms:SaveFileDialog saveFileDialog1;private: System:Windows:Forms:

33、Button button7;private: System:Windows:Forms:OpenFileDialog openFileDialog1; protected:/ <summary>/ 清理所有正在使用的資源。/ </summary>Form1()if (components)delete components;private: System:Windows:Forms:MenuStrip menuStrip1;protected: private: System:Windows:Forms:ToolStripMenuItem 瀏覽ToolStripMen

34、uItem;private: System:Windows:Forms:ToolStripMenuItem 查看所有ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 保存結(jié)果ToolStripMenuItem;private: System:Windows:Forms:ToolStripSeparator toolStripMenuItem1;private: System:Windows:Forms:ToolStripMenuItem 退出ToolStripMenuItem1;private: System:W

35、indows:Forms:ToolStripMenuItem 查詢(xún)ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 精確查詢(xún)ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 模糊查詢(xún)ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 添加ToolStripMenuItem;private: System:Windows:Forms:ToolStripMe

36、nuItem 修改ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 刪除ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 刷新ToolStripMenuItem;private: System:Windows:Forms:ToolStripMenuItem 退出ToolStripMenuItem;private: System:Windows:Forms:Label label1;private: System:Windows:Fo

37、rms:Label label2;private: System:Windows:Forms:Label label3;private: System:Windows:Forms:DataGridView dataGridView1;private: System:Windows:Forms:Button button1;private: System:Windows:Forms:Button button2;private: System:Windows:Forms:ComboBox comboBox1;private: System:Windows:Forms:TextBox textBo

38、x1;private:/ <summary>/ 必需的設(shè)計(jì)器變量。/ </summary>System:ComponentModel:Container components;#pragma region Windows Form Designer generated code/ <summary>/ 設(shè)計(jì)器支持所需的方法 - 不要/ 使用代碼編輯器修改此方法的內(nèi)容。/ </summary>void InitializeComponent(void)this->menuStrip1 = (gcnew System:Windows:Forms

39、:MenuStrip();this->瀏覽ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->查看所有ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->保存結(jié)果ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->toolStripMenuItem1 = (gcnew System:Wi

40、ndows:Forms:ToolStripSeparator();this->退出ToolStripMenuItem1 = (gcnew System:Windows:Forms:ToolStripMenuItem();this->查詢(xún)ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->精確查詢(xún)ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->模糊查詢(xún)ToolStripMenuI

41、tem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->添加ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->修改ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->刪除ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->

42、刷新ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->退出ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();this->label1 = (gcnew System:Windows:Forms:Label();this->label2 = (gcnew System:Windows:Forms:Label();this->label3 = (gcnew System:Windows:For

43、ms:Label();this->dataGridView1 = (gcnew System:Windows:Forms:DataGridView();this->button1 = (gcnew System:Windows:Forms:Button();this->button2 = (gcnew System:Windows:Forms:Button();this->comboBox1 = (gcnew System:Windows:Forms:ComboBox();this->textBox1 = (gcnew System:Windows:Forms:T

44、extBox();this->sqlConnection1 = (gcnew System:Data:SqlClient:SqlConnection();this->sqlSelectCommand1 = (gcnew System:Data:SqlClient:SqlCommand();this->sqlInsertCommand1 = (gcnew System:Data:SqlClient:SqlCommand();this->sqlUpdateCommand1 = (gcnew System:Data:SqlClient:SqlCommand();this-&g

45、t;sqlDeleteCommand1 = (gcnew System:Data:SqlClient:SqlCommand();this->sqlDataAdapter1 = (gcnew System:Data:SqlClient:SqlDataAdapter();this->sqlCommand1 = (gcnew System:Data:SqlClient:SqlCommand();this->label8 = (gcnew System:Windows:Forms:Label();this->label6 = (gcnew System:Windows:Form

46、s:Label();this->label5 = (gcnew System:Windows:Forms:Label();this->label4 = (gcnew System:Windows:Forms:Label();this->button3 = (gcnew System:Windows:Forms:Button();this->button4 = (gcnew System:Windows:Forms:Button();this->button5 = (gcnew System:Windows:Forms:Button();this->butto

47、n6 = (gcnew System:Windows:Forms:Button();this->textBox3 = (gcnew System:Windows:Forms:TextBox();this->label7 = (gcnew System:Windows:Forms:Label();this->textBox5 = (gcnew System:Windows:Forms:TextBox();this->textBox2 = (gcnew System:Windows:Forms:TextBox();this->textBox4 = (gcnew Sys

48、tem:Windows:Forms:TextBox();this->groupBox1 = (gcnew System:Windows:Forms:GroupBox();this->richTextBox1 = (gcnew System:Windows:Forms:RichTextBox();this->saveFileDialog1 = (gcnew System:Windows:Forms:SaveFileDialog();this->button7 = (gcnew System:Windows:Forms:Button();this->openFileD

49、ialog1 = (gcnew System:Windows:Forms:OpenFileDialog();this->menuStrip1->SuspendLayout();(cli:safe_cast<System:ComponentModel:ISupportInitialize >(this->dataGridView1)->BeginInit();this->groupBox1->SuspendLayout();this->SuspendLayout();/ / menuStrip1/ this->menuStrip1-&g

50、t;Items->AddRange(gcnew cli:array< System:Windows:Forms:ToolStripItem >(7) this->瀏覽ToolStripMenuItem, this->查詢(xún)ToolStripMenuItem, this->添加ToolStripMenuItem, this->修改ToolStripMenuItem, this->刪除ToolStripMenuItem, this->刷新ToolStripMenuItem, this->退出ToolStripMenuItem);this-&

51、gt;menuStrip1->Location = System:Drawing:Point(0, 0);this->menuStrip1->Name = L"menuStrip1"this->menuStrip1->Size = System:Drawing:Size(619, 25);this->menuStrip1->TabIndex = 0;this->menuStrip1->Text = L"menuStrip1"/ / 瀏覽ToolStripMenuItem/ this->瀏覽Too

52、lStripMenuItem->DropDownItems->AddRange(gcnew cli:array< System:Windows:Forms:ToolStripItem >(4) this->查看所有ToolStripMenuItem, this->保存結(jié)果ToolStripMenuItem, this->toolStripMenuItem1, this->退出ToolStripMenuItem1);this->瀏覽ToolStripMenuItem->Name = L"瀏覽ToolStripMenuItem&

53、quot;this->瀏覽ToolStripMenuItem->ShortcutKeys = static_cast<System:Windows:Forms:Keys>(System:Windows:Forms:Keys:Alt | System:Windows:Forms:Keys:F);this->瀏覽ToolStripMenuItem->Size = System:Drawing:Size(58, 21);this->瀏覽ToolStripMenuItem->Text = L"瀏覽(&F)"/ / 查看所有To

54、olStripMenuItem/ this->查看所有ToolStripMenuItem->Name = L"查看所有ToolStripMenuItem"this->查看所有ToolStripMenuItem->ShortcutKeys = static_cast<System:Windows:Forms:Keys>(System:Windows:Forms:Keys:Control | System:Windows:Forms:Keys:A);this->查看所有ToolStripMenuItem->Size = Syste

55、m:Drawing:Size(189, 22);this->查看所有ToolStripMenuItem->Text = L"查看所有(M)"this->查看所有ToolStripMenuItem->Click += gcnew System:EventHandler(this, &Form1:查看所有ToolStripMenuItem_Click);/ / 保存結(jié)果ToolStripMenuItem/ this->保存結(jié)果ToolStripMenuItem->Name = L"保存結(jié)果ToolStripMenuItem"this->保存結(jié)果ToolStripMenuItem->ShortcutKeys = static_cast<System:Windows:Forms:Keys>(System

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論