版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、<p> 畢業(yè)設(shè)計(論文)外文資料翻譯</p><p> 系 (院): 計算機科學(xué)系 </p><p> 專 業(yè): 計算機科學(xué)與技術(shù) </p><p> 姓 名: </p><p> 學(xué)
2、 號: 111001203 </p><p> 外文出處:Learn Visual Basic in 24 hours </p><p> --Hour 1 Visual Basic at Work </p><p> 附 件:1.外文資料翻譯譯文;2.外文原文。</p><p>
3、; 注:請將該封面與附件裝訂成冊。</p><p> 附件1:外文資料翻譯譯文</p><p> Visual Basic簡介</p><p> 什么是Visual Basic</p><p> Microsoft Visual Basic 5.0是舊的BASIC語言最近的最好的化身,在一個包里給你一個完全的Windows應(yīng)用開發(fā)系
4、統(tǒng)。Visual Basic (我們常稱它VB)能讓你寫、編輯,并且測試Windows應(yīng)用程序。另外,VB有包括你能用來寫并且編譯幫助文件那的工具,ActiveX控制,并且甚至因特網(wǎng)應(yīng)用程序</p><p> Visual Basic是它本身的一個Windows應(yīng)用程序。你裝載并且執(zhí)行VB系統(tǒng)就好象你做其它Windows程序。你將使用這個運行的VB程序創(chuàng)造另外的程序。雖然VB是一個非常地有用的工具,但VB只是一
5、個程序員(寫程序的人)用來寫, 測試,并且運行Windows應(yīng)用程序的工具。</p><p> 盡管程序員們經(jīng)??商娼坏厥褂眯g(shù)語程序和應(yīng)用程序,當(dāng)你正在描述一個Windows程序時術(shù)語應(yīng)用程序似乎最適合,因為一個Windows程序由若干份代表性的文件組成。這些文件以工程形式一起工作。通過雙擊一個圖標(biāo)或由以Windows開始應(yīng)用程序運行啟動菜單用戶從Windows加載并且運行工程產(chǎn)生最終的程序。</p>
6、;<p> 過去的45年與計算機硬件一起的編程工具的角色已經(jīng)演變。今天一種程序語言,例如Visual Basic,一些年以前與程序語言的非常不一致。Windows操作系統(tǒng)的視覺的天性要求比一些年以前是可利用的更先進(jìn)的工具。在windowed環(huán)境以前,一種程序語言是你用來寫程序的一個簡單的基于文章工具。今天你需要的不只是一種語言,你需要一種能在windows系統(tǒng)內(nèi)部工作并且能利用所有的繪畫、多媒體、聯(lián)機和Windows提供
7、的多處理活動開發(fā)應(yīng)用軟件的繪圖開發(fā)工具。Visual Basic是如此的一種工具。超過一種語言,Visual Basic讓你產(chǎn)生與今天的Windows操作系統(tǒng)的每個方面互相影響的應(yīng)用程序。如果在過去你已經(jīng)注意Visual Basic,你將很驚訝今天的Visual Basic系統(tǒng)?,F(xiàn)在VB創(chuàng)造獨立的運行時刻的一個真實的編輯器.EXE文件比先前的VB程序更快速執(zhí)行。VB也包括若干個提供逐步的對話框問題的奇才,這些對話框問題通過應(yīng)用程序指導(dǎo)你
8、。VB的開發(fā)平臺,一個叫開發(fā)者工作室的發(fā)展環(huán)境,現(xiàn)在支持和先進(jìn)的Visual C++,Visual J++ 編輯器一樣的特征。因此,一旦你學(xué)習(xí)微軟的</p><p><b> 語言</b></p><p> 今天編程語言不再和它們以前一樣。語言自己沒變得不太重要,而是應(yīng)用軟件的繪畫接口已經(jīng)變得更重要。</p><p> 一臺計算機不能理解
9、任何人的說的語言。一種口語,例如意大利或英語,簡單地太全面并且不明確,計算機不能理解。因此,我們必須適應(yīng)機器并且學(xué)習(xí)計算機能理解的一種語言。VB的程序語言是相當(dāng)簡單的并且在最多的部分使用普通的英語詞和短語。然而,語言明確。當(dāng)你用Visual Basic語言寫聲明時,在一樣的上下文以內(nèi)聲明從來沒有多樣的意思。</p><p><b> VB編程進(jìn)程</b></p><p&
10、gt; 當(dāng)你想要使用可視化Basic時,你將跟隨這些基本的步驟:</p><p> 開始可視化Basic。</p><p> 創(chuàng)造一個新應(yīng)程序或裝載一個存在的應(yīng)用程序。當(dāng)你創(chuàng)建一個新應(yīng)用程序時,你可能想要使用Visual Basic的VB應(yīng)用程序精靈來寫你的程序的初始的外形。用Visual Basic提供的調(diào)試工具測試你的應(yīng)用程序。調(diào)試的工具幫助你定位并且排除程序錯誤(bugs)。不
11、管你盡最大的努力使他們出來,它們都能出現(xiàn)。</p><p> 編譯你的程序進(jìn)一個最終的應(yīng)用程序。</p><p> 停止Visual Basic。</p><p> 分發(fā)應(yīng)用程序到你的用戶。</p><p> 你將很少連續(xù)執(zhí)行所有的這些步驟。6個步驟不是連續(xù)的步驟。但是你在完成你的應(yīng)用程序前通過并且回到的階段。</p>
12、<p> 開始Visual Basic</p><p> 你從Windows啟動菜單啟動Visual Basic。Visual Basic開發(fā)環(huán)境它自身通常出現(xiàn)在叫做Microsoft Visual Basic 5.0的子菜單上,盡管你的可能由于裝置不同而有一些不同的權(quán)力。你將看到在Microsoft Visual Basic 5.0子菜單上列出的程序。當(dāng)你從子菜單選擇Visual Basic5.0
13、asic加載并出現(xiàn)在你的屏幕上。</p><p> 在大多數(shù)系統(tǒng)上,一旦你開始Visual Basic數(shù)字1.1的對話框出現(xiàn)。對話框讓你啟動VB應(yīng)用程序精靈,編輯存在的VB程序或從你最近已經(jīng)處理的程序列表上選取,取決于你點擊的對話框制表符。</p><p> 當(dāng)你能看到對話框的底部,每次你開始當(dāng)對話框的你能實際上是看,每次你開始Viaual Basic你不必看見對話框。在將來如果你點擊
14、選項標(biāo)簽,那么不顯示選出這個對話框,當(dāng)你開始Visual Basic時VisualBasic將不顯示開的對話框。</p><p> 數(shù)字1.1。當(dāng)你開始VB時新工程對話框經(jīng)常出現(xiàn)。</p><p> 一旦你關(guān)上對話框,規(guī)則的可視化Basic屏幕出現(xiàn)。當(dāng)數(shù)字1.2表演,VB打開的屏幕能開始工作!數(shù)字1.2表演Visual Basic開發(fā)環(huán)境,你將快變得密切地熟悉的環(huán)境。從這開發(fā)環(huán)境你將創(chuàng)
15、建Windows程序。 數(shù)字1.2。Vb的屏幕看起來糊涂。</p><p> 盡管屏幕看起來糊涂,你能充分定制適合你的需要和偏愛的Visual Basic屏幕將來,你將調(diào)整屏幕的窗戶尺寸和皮膚并且顯示某個窗戶因此你的Visual Basic屏幕的開始狀態(tài)可能與那數(shù)字1.2的非常地不一致。</p><p> 停止Visual Basic</p><p>
16、 你將從Visual Basic退出并且回到Windowsde的方法與你退出大多數(shù)Windows應(yīng)用程序的方法一樣:選擇文件|出口,點擊Visual Basic的主窗口靠近的按鈕,點擊Alt+F4,或雙擊那出現(xiàn)在的屏幕左上角VB的控制菜單圖標(biāo)。</p><p> 如果在當(dāng)前開的工程以內(nèi)你已經(jīng)改變了一個或更多的文件(記得工程是包含你的應(yīng)用程序文件的集合而成的),Visual Basic給你一個最后一個機會在退出W
17、indows前保存你的工作。</p><p><b> 掌握發(fā)展環(huán)境</b></p><p> 在你學(xué)習(xí)Visual Basic以前學(xué)習(xí)開發(fā)環(huán)境的細(xì)節(jié)是有點象在你學(xué)習(xí)開車以前學(xué)習(xí)一輛汽車的零件。然而,你花時間學(xué)習(xí)一些發(fā)展環(huán)境的更基本的原則,你將更好能學(xué)習(xí)Visual Basic。在VB的環(huán)境以內(nèi)你將更舒適并且當(dāng)在發(fā)展環(huán)境隨后涉及的窗口和工具時將更好的理解一些聯(lián)系的
18、詞。</p><p> 數(shù)字1.3說明了Visual Basic開發(fā)環(huán)境有許多更重要的屏幕成分的標(biāo)記。你能從菜單和工具條發(fā)現(xiàn),Visual Basic有點像市場上其它的Windows程序。按照在另外的應(yīng)用程序他們做的許多Visual Basic的菜單條命令工作就像它們在其它應(yīng)用程序,例如Microsoft Word,中做的一樣。例如,你能選擇編輯|剪切和編輯|粘貼來從一個地方剪切正文粘貼到另一個地方。今天,這些
19、同樣的菜單條命令幾乎在市場上的每個其它的Windows程序上出現(xiàn)。數(shù)字1.3。開始知道發(fā)展環(huán)境。</p><p> 標(biāo)準(zhǔn): 菜單條和工具條</p><p> Visual Basic的菜單條和工具條正如你期待它們的一樣工作。你能點擊或按一個菜單條選擇的熱鍵(例如, Alt+F顯示文件菜單)可以看見提供命令的項的下菜單選擇的列表,其它的水平菜單,或?qū)υ捒?。許多菜單選擇有快捷鍵(經(jīng)常被叫
20、了的加速器鑰匙)例如Ctrl+S為文件|保存選項。當(dāng)你按一下快捷鍵時,你需要先顯示菜單直接到存取選擇。</p><p> 工具條提供一個按鈕存取許多普通的菜單命令。而不選擇編輯|粘貼,例如,你能點擊粘貼工具條按鈕。就象今天大多數(shù)的Windows應(yīng)用程序,Visual Basic支持大量工具條。選擇視圖|工具條看可得到的工具條的一張列表。每一個都普遍的以一個有名字的檢查標(biāo)記出現(xiàn)。</p><p
21、> 表格窗口:它會在哪出現(xiàn)</p><p> 表格窗口是你主要的工作區(qū)域。盡管表格窗口起初相對于你的屏幕來說是很小,但是表格窗口包含你的應(yīng)用程序的背景。換句話說,如果你用VB寫一個基于Windows的計算器,那么這個計算器的按鈕都會存在于表格窗口上,而且當(dāng)某人運行這個計算器的時候,這個計算器就會只出現(xiàn)在表格窗口連帶放置在那的組件和連接在那的代碼。</p><p> 提示:在表格
22、窗口里你將不會看到程序的代碼。表格窗口支持程序的交互式對象,例如命令按鈕、標(biāo)簽、文本框、滾動條和其他的一些控制。這些代碼在別處出現(xiàn),這個特殊的窗口被稱為代碼窗口。這個代碼窗口并沒有在1.3節(jié)中出現(xiàn),但是你可以通過選擇視圖/代碼來看代碼窗口。一個代碼窗口要比一個文本編輯器小,文本編輯器就是你寫連接程序的程序說明時所使用的工具。</p><p> 考慮在1.4節(jié)窗口中運行的那個簡單的程序。這個窗口顯示一個簡單的帶有
23、一系列選擇的對話框、文本框和命令按鈕。寫這個程序的程序員是通過打開一個表格窗口,加入一些控制和連接一些組件來寫的。那就是你將要做的不管是你寫簡單的還是復(fù)雜的VB應(yīng)用程序。你將以一個空的表格窗口并向這個窗口添加控制例如選擇和命令按鈕開始?;蛟S你的程序甚至需要多個表格窗口。</p><p> 提示:一些程序,例如命令,允許在一個特殊的叫做MDI(multiple-document interface)的模塊中出現(xiàn)多
24、個表格窗口,這里你可以在同一個程序中打開多個數(shù)據(jù)文檔。只需要一個簡單的數(shù)據(jù)窗口的程序稱為一個SDI(single-document interface)程序,例如Windows的記事本程序一次只允許用戶打開一個數(shù)據(jù)文檔。SDI程序可能支持多個表格;然而,這些表格不但支持多個數(shù)據(jù)文件而且還為額外的對話框和第二工作屏幕提供擴展的支持。</p><p> 源程序是代碼,表格,菜單,圖表和你為形成一個工程而創(chuàng)建和編輯的
25、幫助文件(也稱為源代碼)。</p><p> 部分你創(chuàng)建的程序,例如表格,代碼和你為輸出準(zhǔn)備的圖形,包括源程序。當(dāng)你或者其他的用戶連接或運行這個源程序,VB將程序翻譯成一個可執(zhí)行的程序。你不能對一個可執(zhí)行程序進(jìn)行一個直接的修改。如果你在運行程序的過程中發(fā)現(xiàn)一些小錯誤,你必須修改源程序(在這個工程中包含多個文件)并再運行和再編譯這個源程序。</p><p> 工具箱提供控制 <
26、;/p><p> 工具箱包括你放置在表格窗口中的命令。你將在下一節(jié)課的時間學(xué)習(xí)到如何在表格窗口里放置工具箱命令。工具箱有用不完的命令;如果你在表格窗口中放置一個命令按鈕,那么你也要在工具箱中放置同樣的按鈕。這些被稱為固有命令因為VB的三個版本都支持這些標(biāo)準(zhǔn)的工具。你可以根據(jù)你的需要加一些額外的控制到工具箱中。一些額外的工具在VB的三個版本中,但是這些額外的工具并不出現(xiàn)在工具箱窗口中,除非你通過工程/組件菜單選擇中加
27、入它們。如果你使用專業(yè)或者企業(yè)版本,你將能夠加一些在標(biāo)準(zhǔn)版本中并不出現(xiàn)的額外的控制。</p><p> 表格設(shè)計窗口放置表格 </p><p> 表格設(shè)計窗口展現(xiàn)最初的位置和在表格窗口顯示出來的正確的表格的相關(guān)的大小。已經(jīng)學(xué)習(xí)過的程序是一個多重表格程序。帶有文本框題目的表格只是若干表格中的一個。表格設(shè)計窗口總是顯示在當(dāng)前的表格窗口中表格在哪出現(xiàn)。如果你想讓某個表格在當(dāng)前位置的不同地方
28、出現(xiàn)的話,那么你可以在表格設(shè)計窗口內(nèi)將表格移動到表格出現(xiàn)的位置當(dāng)用戶運行這個程序時。</p><p> 提示:注意表格位置指示器,在工具欄按鈕的右邊,當(dāng)你在表格設(shè)計窗口移動表格時,它的位置將會改變。</p><p><b> 工程資源管理器窗口</b></p><p> 工程資源管理器窗口,經(jīng)常被稱為工程窗口,為你提供在應(yīng)用程序中所有文件
29、的樹狀結(jié)構(gòu)。微軟在版本4和版本5之間的版本中將名字從工程窗口改為工程資源管理器窗口,用來慶祝在Windows 95和NT中普遍的樹狀型文件和典型資源管理器之間的類同。你可以擴展和結(jié)合觀點的分支以獲得多多少少的描述。</p><p><b> 道具窗口</b></p><p> 道具是被一個命令的描述性信息詳述的。</p><p> 每次當(dāng)
30、你點擊一個不同的表格窗口工具時,一個不同的列表將會在道具窗口中顯示出來。道具窗口描述關(guān)于某一形式命令的特性(描述性的和功能性的信息)。在VB中很多特性基本上存在每一個對象中。</p><p><b> 幫助在你指尖中</b></p><p> 在線圖書就是關(guān)于VB的電子圖書適合VB程序員。</p><p> VB的在線幫助系統(tǒng)是市場上最先
31、進(jìn)的系統(tǒng)之一。當(dāng)你需要幫助做一個控制,窗口,工具,或者命令時,請按F1。VB分析你所做的并提供幫助。除此之外,VB還提供一個巨大的幫助資源叫做在線圖書。當(dāng)你在幫助菜單中選擇了在線圖書時,VB會展示關(guān)于VB的一系列樹狀結(jié)構(gòu)形式的書,這樣你就能找到你所需要的書籍并閱讀。這個在線幫助也擴展到Internet上。如果你可以連接到Internet,那么你就可以通過選擇在線幫助/微軟瀏覽到最新的幫助主題。</p><p>&
32、lt;b> 總結(jié)</b></p><p> 這段時間快速的帶你熟悉VB。你或許已經(jīng)比開始時更明白VB了。程序員用VB開發(fā)非常先進(jìn)的Windows應(yīng)用程序。現(xiàn)在你明白了VB的用途和怎樣去打開、關(guān)閉VB,你準(zhǔn)備好全心的投入到VB的學(xué)習(xí)中。</p><p> 附件2:外文原文(復(fù)印件)</p><p> Whats Visual Basic Ab
33、out?</p><p> Controls are tools on the Toolbox window that you place on a form to interact with the user and control the program flow.</p><p> Microsoft Visual Basic 5.0, the latest and greate
34、st incarnation of the old BASIC language, gives you a complete Windows application development system in one package. Visual Basic (or VB, as we often call it) lets you write, edit, and test Windows applications. In addi
35、tion, VB includes tools you can use to write and compile help files, ActiveX controls, and even Internet applications.</p><p> Visual Basic is itself a Windows application. You load and execute the VB syste
36、m just as you do other Windows programs. You will use this running VB program to create other programs. VB is just a tool, albeit an extremely powerful tool, that programmers (people who write programs) use to write, tes
37、t, and run Windows applications.</p><p> Although programmers often use the terms program and application interchangeably (as will be done throughout this 24-hour course), the term application seems to fit
38、the best when you're describing a Windows program because a Windows program typically consists of several files. These files work together in the form of a project. The project generates the final program that the us
39、er loads and runs from Windows by double-clicking an icon or by starting the application with the Windows Start menu.</p><p> The role of programming tools has evolved over the past 45 years along with comp
40、uter hardware. A programming language today, such as Visual Basic, differs greatly from programming languages of just a few years ago. The visual nature of the Windows operating system requires more advanced tools than w
41、ere available a few years ago. Before windowed environments, a programming language was a simple text-based tool with which you wrote programs. Today you need much more than just a language; you need </p><p>
42、; If you've taken a look at Visual Basic in the past, you'll be amazed at today's Visual Basic system. VB now sports a true compiler that creates standalone runtime .EXE files that execute more quickly than
43、previous VB programs. VB also includes several wizards that offer step-by-step dialog box questions that guide you through the creation of applications. VB's development platform, a development environment called the
44、 Developer Studio, now supports the same features as the advanced Visual C++ an</p><p><b> Languages</b></p><p> Programming languages today are not what they used to be. The langu
45、age itself has not gotten less important; rather, the graphical interfaces to applications have gotten more important.</p><p> A computer cannot understand any person's spoken language. A spoken languag
46、e, such as Italian or English, is simply too general and ambiguous for computers to understand. Therefore, we must adapt to the machine and learn a language that the computer can understand. VB's programming language
47、 is fairly simple and uses common English words and phrases for the most part. The language is not ambiguous, however. When you write a statement in the Visual Basic language, the statement never has multiple </p>
48、<p> As you progress through the next 24 hours, you will learn more and more of the Visual Basic language's vocabulary and syntax (grammar, punctuation, and spelling rules). You will use the VB programming lan
49、guage to embed instructions within applications you create. All the code you write (code is the program's instructions) must work together to instruct the computer. Code is the glue that ties all the graphics, text,
50、and processes together within an application. Code tells a checkbook application</p><p> The VB Programming Process</p><p> When you want to use Visual Basic, you'll follow these basic ste
51、ps: </p><p> 1. Start Visual Basic.</p><p> 2. Create a new application or load an existing application. When you create a new application, you might want to use Visual Basic's VB Applicat
52、ion Wizard to write your program's initial shell, as you'll do in the next hour. </p><p> 3. Test your application with the debugging tools Visual Basic supplies. The debugging tools help you locate
53、 and eliminate program errors (called bugs) that can appear despite your best efforts to keep them out.4. Compile your program into a final application.5. Quit Visual Basic.6. Distribute the application to your users.
54、 </p><p> Rarely will you perform all these steps sequentially in one sitting. The six steps are not sequential steps, but stages that you go through and return to before completing your application. </p
55、><p> Starting Visual Basic</p><p> You start Visual Basic from the Windows Start menu. The Visual Basic development environment itself usually appears on a submenu called Microsoft Visual Basic
56、5.0, although yours might be called something different due to installation differences. You will see additional programs listed on the Microsoft Visual Basic 5.0 submenu, but when you select Visual Basic 5.0 from the su
57、bmenu, Visual Basic loads and appears on your screen.</p><p> On most systems, Figure 1.1's dialog box appears as soon as you start Visual Basic. The dialog box lets you start the VB Application Wizard,
58、 edit an existing VB project, or select from a list of recent projects you've worked on, depending on the dialog box tab you click.</p><p> As you can see at the bottom of the dialog box, you don't
59、have to see the dialog box every time you start Visual Basic. If you click the option labeled Don't show this dialog box in the future, Visual Basic will not display the opening dialog box when you start Visual Basic
60、.</p><p> Figure 1.1. The New Project dialog box often appears when you start VB. </p><p> Once you close the dialog box, the regular Visual Basic screen appears. As Figure 1.2 shows, VB's
61、 opening screen can get busy! Figure 1.2 shows the Visual Basic development environment, the environment with which you will become intimately familiar soon. From this development environment you will create Windows prog
62、rams. Figure 1.2. VB's screen looks confusing at first. Although the screen can look confusing, you can fully customize the Visual Basic screen to suit your needs and prefere</p><p> Stopping V
63、isual Basic</p><p> You'll exit from Visual Basic and return to Windows the same way you exit most Windows applications: Select File|Exit, click Visual Basic's main window close button, press Alt+F4
64、, or double-click VB's Control menu icon that appears in the upper-left corner of the screen.</p><p> If you have made changes to one or more files within the currently open project (remember that a pro
65、ject is the collection of files that comprise your application), Visual Basic gives you one last chance to save your work before quitting to Windows. </p><p> Mastering the Development Environment</p>
66、<p> Learning the ins and outs of the development environment before you learn Visual Basic is somewhat like learning the parts of an automobile before you learn to drive. If, however, you take the time to learn
67、some of the development environment's more fundamental principles, you will be better able to learn Visual Basic. You then will be more comfortable within VB's environment and will have a better understanding of
68、the related words when subsequent lessons refer to the windows and tools in the d</p><p> Figure 1.3 shows the Visual Basic development environment with many of the more important screen components labeled.
69、 As you can see from the menu and toolbar, Visual Basic looks somewhat like other Windows programs on the market. Many of Visual Basic's menu bar commands work just as they do in other applications such as Microsoft
70、Word. For example, you can select Edit|Cut and Edit|Paste to cut and paste text from one location to another. These same menu bar commands appear on almost every other </p><p> Standards: The Menu Bar and T
71、oolbar</p><p> Visual Basic's menu bar and toolbars work just as you expect them to. You can click or press a menu bar option's hotkey (for example, Alt+F displays the File menu) to see a pull-down
72、list of menu options that provides either commands, another level of menus, or dialog boxes. Many of the menu options have shortcut keys (often called accelerator keys) such as Ctrl+S for the File|Save option. When you p
73、ress an accelerator key, you don't first have to display the menu to access the option.</p><p> The toolbar provides one-button access to many common menu commands. Instead of selecting Edit|Paste, for
74、example, you could click the Paste toolbar button. As with most of today's Windows applications, Visual Basic supports a wide range of toolbars. Select View|Toolbars to see a list of available toolbars. Each one that
75、 is currently showing will appear with a checkmark by its name. </p><p> The Form Window: Where It All Happens</p><p> The Form window is your primary work area. Although the Form window first
76、 appears small relative to the rest of your screen, the Form window comprises the background of your application. In other words, if you write a Windows-based calculator with Visual Basic, the calculator's buttons al
77、l reside on the Form window and when someone runs the calculator, the calculator that appears is really just the application's Form window with components placed there and tied together with code. </p><p&g
78、t; NOTE:You will not see program code on the Form window. The Form window holds the program's interactive objects, such as command buttons, labels, text boxes, scrollbars, and other controls. The code appears elsewh
79、ere in a special window called the Code window. The Code window does not appear in Figure 1.3, but you can select View|Code to see the Code window. A Code window is little more than a text editor with which you write the
80、 programming statements that tie together the application. </p><p> Consider the sample program running in Figure 1.4's window. The window shows a simple dialog box with a few options, text boxes, and c
81、ommand buttons.The programmer who created Figure 1.4's dialog box did so by opening a Form window, adding some controls (the items on the Form window that interact with the user--sometimes called tools), and tying th
82、e components together with some Visual Basic language code. That's exactly what you will do when writing simple and complex Visual Basic applications.</p><p> NOTE: Some applications, such as Word, allo
83、w for several Form windows in a special mode called MDI (multiple-document interface) in which you can open multiple data documents within the same application. An application that requires only a single data window is c
84、alled an SDI (single-document interface) application, such as the Windows Notepad application that lets the user open only one data document at a time. SDI applications might support multiple forms; however, these forms
85、do not hold multi</p><p> Source program is code, forms, menus, graphics, and help files that you create and edit to form the project (also called source code).</p><p> The parts of the applic
86、ation that you create, such as the forms, the code, and the graphics that you prepare for output, comprise the source program. When you or another user compiles or runs the source program, VB translates the program into
87、an executable program. You cannot make changes directly to an executable program. If you see bugs when you run the program, you must change the source application (which might contain multiple files in the project) and r
88、erun or recompile the source. </p><p> The Toolbox Supplies Controls</p><p> The toolbox contains the controls that you place on the Form window. You will learn in the next hour's lesson h
89、ow to place toolbox controls on the Form window. The toolbox never runs out of controls; if you place a command button on the Form window, another awaits you on the toolbox, ready to be placed also.These are called the i
90、ntrinsic controls because all three editions of VB support these standard tools. You can add additional controls to the toolbox as your needs grow. Some extra tools come</p><p> The Form Layout Window Place
91、s Forms</p><p> The Form Layout window displays the initial position and relative size of the current form shown in the Form window.The application being studied is a multiple-form application. The form wit
92、h the title Text Box Properties is just one of several forms. The Form Layout window always shows where the form appears in the current Form window. If you want the form to appear at a different location from the current
93、 position, you can move the form inside the Form Layout window to move the form's appearin</p><p> TIP: Notice that the form location indicators, to the right of the toolbar buttons, change when you mov
94、e the form in the Form Layout window. </p><p> The Project Explorer Window</p><p> The Project Explorer window, often called the Project window, gives you a tree-structured view of all the fil
95、es in the application. Microsoft changed the formal name from Project window to Project Explorer window between versions 4 and 5 to celebrate the resemblance of the window to the typical Explorer-like tree-structured fil
96、e views so prevalent in Windows 95 and NT. You can expand and collapse branches of the view to get more or less detail. </p><p> The Properties Window</p><p> Properties are detailed descripti
97、ve information about a control. A different list appears in the Properties window every time you click over a different Form window tool. The Properties window describes properties (descriptive and functional information
98、) about the form and its controls. Many properties exist for almost every object in Visual Basic. </p><p> Help Is at Your Fingertips</p><p> Books Online are electronic books about Visual Bas
99、ic for the Visual Basic programmer. Visual Basic's online help system is one of the most advanced on the market. When you want help with a control, window, tool, or command, press F1. Visual Basic analyzes what you a
100、re doing and offers help. In addition, Visual Basic supports a tremendous help resource called Books Online. When you select Books Online from the Help menu, Visual Basic displays a tree-structured view of books about Vi
101、sual Basic tha</p><p><b> Summary</b></p><p> This hour quickly introduced you to Visual Basic. Perhaps you already can see that Visual Basic is more than it first appears. Program
溫馨提示
- 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. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 計算機專業(yè)外文翻譯---visual basic 語言與算法
- 計算機專業(yè)vb外文翻譯---visual basic 語言與算法
- 計算機外文資料翻譯
- 計算機外文翻譯 --keil c 簡介
- 計算機技術(shù)簡介外文翻譯
- 外文翻譯---visual basic編程語言
- 外文翻譯----visual basic編程語言
- 計算機專業(yè)外文資料翻譯
- visual basic畢業(yè)設(shè)計外文翻譯
- 外文翻譯---visual basic 語言與算法
- 計算機專業(yè)畢業(yè)外文翻譯--jsp簡介
- 外文翻譯---visual basic 語言與算法
- 計算機專業(yè)外文文獻(xiàn)及翻譯--微軟visual studio
- 外文翻譯--Visual Basic編程語言概述.doc
- 計算機專業(yè)外文翻譯--計算機
- vb外文翻譯--- visual basic語言和算術(shù)
- 外文翻譯--Visual Basic編程語言概述.doc
- 外文翻譯--Visual Basic編程語言概述.doc
- 計算機外文翻譯---計算機引論
- 外文翻譯--Visual Basic編程語言概述.doc
評論
0/150
提交評論