




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、 淮 海 工 學(xué) 院畢業(yè)設(shè)計(jì)(論文)外文資料翻譯系 (院): 計(jì)算機(jī)科學(xué)系 專 業(yè): 計(jì)算機(jī)科學(xué)與技術(shù) 姓 名: 戴 永 麗 學(xué) 號(hào): 111001203 外文出處:learn visual basic in 24 hours -hour 1 visual basic at work 附 件:1.外文資料翻譯譯文;2.外文原文。指導(dǎo)教師評語:外文資料的選材適中,和本課題結(jié)合比較緊密,內(nèi)容是關(guān)于vb方面的問題,也正是本設(shè)計(jì)的開發(fā)工具之一。譯文基本正確,達(dá)到要求字?jǐn)?shù),格式比較規(guī)范,基本完成了外文資料翻譯任務(wù)。 簽名: 2004年4 月16 日注:請將該封面與附件裝訂成冊。附件1:外文資料翻譯譯文v
2、isual basic簡介什么是visual basicmicrosoft visual basic 5.0是舊的basic語言最近的最好的化身,在一個(gè)包里給你一個(gè)完全的windows應(yīng)用開發(fā)系統(tǒng)。visual basic (我們常稱它vb)能讓你寫、編輯,并且測試windows應(yīng)用程序。另外,vb有包括你能用來寫并且編譯幫助文件那的工具,activex控制,并且甚至因特網(wǎng)應(yīng)用程序visual basic是它本身的一個(gè)windows應(yīng)用程序。你裝載并且執(zhí)行vb系統(tǒng)就好象你做其它windows程序。你將使用這個(gè)運(yùn)行的vb程序創(chuàng)造另外的程序。雖然vb是一個(gè)非常地有用的工具,但vb只是一個(gè)程序員(寫
3、程序的人)用來寫, 測試,并且運(yùn)行windows應(yīng)用程序的工具。盡管程序員們經(jīng)常可替交地使用術(shù)語程序和應(yīng)用程序,當(dāng)你正在描述一個(gè)windows程序時(shí)術(shù)語應(yīng)用程序似乎最適合,因?yàn)橐粋€(gè)windows程序由若干份代表性的文件組成。這些文件以工程形式一起工作。通過雙擊一個(gè)圖標(biāo)或由以windows開始應(yīng)用程序運(yùn)行啟動(dòng)菜單用戶從windows加載并且運(yùn)行工程產(chǎn)生最終的程序。過去的45年與計(jì)算機(jī)硬件一起的編程工具的角色已經(jīng)演變。今天一種程序語言,例如visual basic,一些年以前與程序語言的非常不一致。windows操作系統(tǒng)的視覺的天性要求比一些年以前是可利用的更先進(jìn)的工具。在windowed環(huán)境以前
4、,一種程序語言是你用來寫程序的一個(gè)簡單的基于文章工具。今天你需要的不只是一種語言,你需要一種能在windows系統(tǒng)內(nèi)部工作并且能利用所有的繪畫、多媒體、聯(lián)機(jī)和windows提供的多處理活動(dòng)開發(fā)應(yīng)用軟件的繪圖開發(fā)工具。visual basic是如此的一種工具。超過一種語言,visual basic讓你產(chǎn)生與今天的windows操作系統(tǒng)的每個(gè)方面互相影響的應(yīng)用程序。如果在過去你已經(jīng)注意visual basic,你將很驚訝今天的visual basic系統(tǒng)。現(xiàn)在vb創(chuàng)造獨(dú)立的運(yùn)行時(shí)刻的一個(gè)真實(shí)的編輯器.exe文件比先前的vb程序更快速執(zhí)行。vb也包括若干個(gè)提供逐步的對話框問題的奇才,這些對話框問題通
5、過應(yīng)用程序指導(dǎo)你。vb的開發(fā)平臺(tái),一個(gè)叫開發(fā)者工作室的發(fā)展環(huán)境,現(xiàn)在支持和先進(jìn)的visual c+,visual j+ 編輯器一樣的特征。因此,一旦你學(xué)習(xí)微軟的視覺的編程產(chǎn)品的之一,你將能熟練的使用其它編程語言在學(xué)習(xí)其它編程語言時(shí)你前面沒有很長的彎路。語言 今天編程語言不再和它們以前一樣。語言自己沒變得不太重要,而是應(yīng)用軟件的繪畫接口已經(jīng)變得更重要。一臺(tái)計(jì)算機(jī)不能理解任何人的說的語言。一種口語,例如意大利或英語,簡單地太全面并且不明確,計(jì)算機(jī)不能理解。因此,我們必須適應(yīng)機(jī)器并且學(xué)習(xí)計(jì)算機(jī)能理解的一種語言。vb的程序語言是相當(dāng)簡單的并且在最多的部分使用普通的英語詞和短語。然而,語言明確。當(dāng)你用v
6、isual basic語言寫聲明時(shí),在一樣的上下文以內(nèi)聲明從來沒有多樣的意思。vb編程進(jìn)程當(dāng)你想要使用可視化basic時(shí),你將跟隨這些基本的步驟:1 開始可視化basic。2 創(chuàng)造一個(gè)新應(yīng)程序或裝載一個(gè)存在的應(yīng)用程序。當(dāng)你創(chuàng)建一個(gè)新應(yīng)用程序時(shí),你可能想要使用visual basic的vb應(yīng)用程序精靈來寫你的程序的初始的外形。用visual basic提供的調(diào)試工具測試你的應(yīng)用程序。調(diào)試的工具幫助你定位并且排除程序錯(cuò)誤(bugs)。不管你盡最大的努力使他們出來,它們都能出現(xiàn)。3 編譯你的程序進(jìn)一個(gè)最終的應(yīng)用程序。4 停止visual basic。5 分發(fā)應(yīng)用程序到你的用戶。你將很少連續(xù)執(zhí)行所有的
7、這些步驟。6個(gè)步驟不是連續(xù)的步驟。但是你在完成你的應(yīng)用程序前通過并且回到的階段。開始visual basic你從windows啟動(dòng)菜單啟動(dòng)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.0asic加載并出現(xiàn)在你的屏幕上。在大多數(shù)系統(tǒng)上,一旦你開始visual basic數(shù)字1.1的對話框出現(xiàn)。對話框讓你啟動(dòng)vb應(yīng)用程序精靈,編輯存在的
8、vb程序或從你最近已經(jīng)處理的程序列表上選取,取決于你點(diǎn)擊的對話框制表符。當(dāng)你能看到對話框的底部,每次你開始當(dāng)對話框的你能實(shí)際上是看,每次你開始viaual basic你不必看見對話框。在將來如果你點(diǎn)擊選項(xiàng)標(biāo)簽,那么不顯示選出這個(gè)對話框,當(dāng)你開始visual basic時(shí)visualbasic將不顯示開的對話框。數(shù)字1.1。當(dāng)你開始vb時(shí)新工程對話框經(jīng)常出現(xiàn)。一旦你關(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)建windows程序。 數(shù)字1.2。vb的屏幕看起來
9、糊涂。盡管屏幕看起來糊涂,你能充分定制適合你的需要和偏愛的visual basic屏幕將來,你將調(diào)整屏幕的窗戶尺寸和皮膚并且顯示某個(gè)窗戶因此你的visual basic屏幕的開始狀態(tài)可能與那數(shù)字1.2的非常地不一致。停止visual basic你將從visual basic退出并且回到windowsde的方法與你退出大多數(shù)windows應(yīng)用程序的方法一樣:選擇文件|出口,點(diǎn)擊visual basic的主窗口靠近的按鈕,點(diǎn)擊alt+f4,或雙擊那出現(xiàn)在的屏幕左上角vb的控制菜單圖標(biāo)。如果在當(dāng)前開的工程以內(nèi)你已經(jīng)改變了一個(gè)或更多的文件(記得工程是包含你的應(yīng)用程序文件的集合而成的),visual b
10、asic給你一個(gè)最后一個(gè)機(jī)會(huì)在退出windows前保存你的工作。掌握發(fā)展環(huán)境在你學(xué)習(xí)visual basic以前學(xué)習(xí)開發(fā)環(huán)境的細(xì)節(jié)是有點(diǎn)象在你學(xué)習(xí)開車以前學(xué)習(xí)一輛汽車的零件。然而,你花時(shí)間學(xué)習(xí)一些發(fā)展環(huán)境的更基本的原則,你將更好能學(xué)習(xí)visual basic。在vb的環(huán)境以內(nèi)你將更舒適并且當(dāng)在發(fā)展環(huán)境隨后涉及的窗口和工具時(shí)將更好的理解一些聯(lián)系的詞。數(shù)字1.3說明了visual basic開發(fā)環(huán)境有許多更重要的屏幕成分的標(biāo)記。你能從菜單和工具條發(fā)現(xiàn),visual basic有點(diǎn)像市場上其它的windows程序。按照在另外的應(yīng)用程序他們做的許多visual basic的菜單條命令工作就像它們在其它
11、應(yīng)用程序,例如microsoft word,中做的一樣。例如,你能選擇編輯|剪切和編輯|粘貼來從一個(gè)地方剪切正文粘貼到另一個(gè)地方。今天,這些同樣的菜單條命令幾乎在市場上的每個(gè)其它的windows程序上出現(xiàn)。數(shù)字1.3。開始知道發(fā)展環(huán)境。標(biāo)準(zhǔn): 菜單條和工具條visual basic的菜單條和工具條正如你期待它們的一樣工作。你能點(diǎn)擊或按一個(gè)菜單條選擇的熱鍵(例如, alt+f顯示文件菜單)可以看見提供命令的項(xiàng)的下菜單選擇的列表,其它的水平菜單,或?qū)υ捒颉TS多菜單選擇有快捷鍵(經(jīng)常被叫了的加速器鑰匙)例如ctrl+s為文件|保存選項(xiàng)。當(dāng)你按一下快捷鍵時(shí),你需要先顯示菜單直接到存取選擇。工具條提供一
12、個(gè)按鈕存取許多普通的菜單命令。而不選擇編輯|粘貼,例如,你能點(diǎn)擊粘貼工具條按鈕。就象今天大多數(shù)的windows應(yīng)用程序,visual basic支持大量工具條。選擇視圖|工具條看可得到的工具條的一張列表。每一個(gè)都普遍的以一個(gè)有名字的檢查標(biāo)記出現(xiàn)。 表格窗口:它會(huì)在哪出現(xiàn)表格窗口是你主要的工作區(qū)域。盡管表格窗口起初相對于你的屏幕來說是很小,但是表格窗口包含你的應(yīng)用程序的背景。換句話說,如果你用vb寫一個(gè)基于windows的計(jì)算器,那么這個(gè)計(jì)算器的按鈕都會(huì)存在于表格窗口上,而且當(dāng)某人運(yùn)行這個(gè)計(jì)算器的時(shí)候,這個(gè)計(jì)算器就會(huì)只出現(xiàn)在表格窗口連帶放置在那的組件和連接在那的代碼。提示:在表格窗口里你將不會(huì)看
13、到程序的代碼。表格窗口支持程序的交互式對象,例如命令按鈕、標(biāo)簽、文本框、滾動(dòng)條和其他的一些控制。這些代碼在別處出現(xiàn),這個(gè)特殊的窗口被稱為代碼窗口。這個(gè)代碼窗口并沒有在1.3節(jié)中出現(xiàn),但是你可以通過選擇視圖/代碼來看代碼窗口。一個(gè)代碼窗口要比一個(gè)文本編輯器小,文本編輯器就是你寫連接程序的程序說明時(shí)所使用的工具??紤]在1.4節(jié)窗口中運(yùn)行的那個(gè)簡單的程序。這個(gè)窗口顯示一個(gè)簡單的帶有一系列選擇的對話框、文本框和命令按鈕。寫這個(gè)程序的程序員是通過打開一個(gè)表格窗口,加入一些控制和連接一些組件來寫的。那就是你將要做的不管是你寫簡單的還是復(fù)雜的vb應(yīng)用程序。你將以一個(gè)空的表格窗口并向這個(gè)窗口添加控制例如選擇和
14、命令按鈕開始。或許你的程序甚至需要多個(gè)表格窗口。提示:一些程序,例如命令,允許在一個(gè)特殊的叫做mdi(multiple-document interface)的模塊中出現(xiàn)多個(gè)表格窗口,這里你可以在同一個(gè)程序中打開多個(gè)數(shù)據(jù)文檔。只需要一個(gè)簡單的數(shù)據(jù)窗口的程序稱為一個(gè)sdi(single-document interface)程序,例如windows的記事本程序一次只允許用戶打開一個(gè)數(shù)據(jù)文檔。sdi程序可能支持多個(gè)表格;然而,這些表格不但支持多個(gè)數(shù)據(jù)文件而且還為額外的對話框和第二工作屏幕提供擴(kuò)展的支持。源程序是代碼,表格,菜單,圖表和你為形成一個(gè)工程而創(chuàng)建和編輯的幫助文件(也稱為源代碼)。部分你創(chuàng)
15、建的程序,例如表格,代碼和你為輸出準(zhǔn)備的圖形,包括源程序。當(dāng)你或者其他的用戶連接或運(yùn)行這個(gè)源程序,vb將程序翻譯成一個(gè)可執(zhí)行的程序。你不能對一個(gè)可執(zhí)行程序進(jìn)行一個(gè)直接的修改。如果你在運(yùn)行程序的過程中發(fā)現(xiàn)一些小錯(cuò)誤,你必須修改源程序(在這個(gè)工程中包含多個(gè)文件)并再運(yùn)行和再編譯這個(gè)源程序。工具箱提供控制 工具箱包括你放置在表格窗口中的命令。你將在下一節(jié)課的時(shí)間學(xué)習(xí)到如何在表格窗口里放置工具箱命令。工具箱有用不完的命令;如果你在表格窗口中放置一個(gè)命令按鈕,那么你也要在工具箱中放置同樣的按鈕。這些被稱為固有命令因?yàn)関b的三個(gè)版本都支持這些標(biāo)準(zhǔn)的工具。你可以根據(jù)你的需要加一些額外的控制到工具箱中。一些額
16、外的工具在vb的三個(gè)版本中,但是這些額外的工具并不出現(xiàn)在工具箱窗口中,除非你通過工程/組件菜單選擇中加入它們。如果你使用專業(yè)或者企業(yè)版本,你將能夠加一些在標(biāo)準(zhǔn)版本中并不出現(xiàn)的額外的控制。表格設(shè)計(jì)窗口放置表格 表格設(shè)計(jì)窗口展現(xiàn)最初的位置和在表格窗口顯示出來的正確的表格的相關(guān)的大小。已經(jīng)學(xué)習(xí)過的程序是一個(gè)多重表格程序。帶有文本框題目的表格只是若干表格中的一個(gè)。表格設(shè)計(jì)窗口總是顯示在當(dāng)前的表格窗口中表格在哪出現(xiàn)。如果你想讓某個(gè)表格在當(dāng)前位置的不同地方出現(xiàn)的話,那么你可以在表格設(shè)計(jì)窗口內(nèi)將表格移動(dòng)到表格出現(xiàn)的位置當(dāng)用戶運(yùn)行這個(gè)程序時(shí)。提示:注意表格位置指示器,在工具欄按鈕的右邊,當(dāng)你在表格設(shè)計(jì)窗口移動(dòng)
17、表格時(shí),它的位置將會(huì)改變。工程資源管理器窗口工程資源管理器窗口,經(jīng)常被稱為工程窗口,為你提供在應(yīng)用程序中所有文件的樹狀結(jié)構(gòu)。微軟在版本4和版本5之間的版本中將名字從工程窗口改為工程資源管理器窗口,用來慶祝在windows 95和nt中普遍的樹狀型文件和典型資源管理器之間的類同。你可以擴(kuò)展和結(jié)合觀點(diǎn)的分支以獲得多多少少的描述。道具窗口道具是被一個(gè)命令的描述性信息詳述的。每次當(dāng)你點(diǎn)擊一個(gè)不同的表格窗口工具時(shí),一個(gè)不同的列表將會(huì)在道具窗口中顯示出來。道具窗口描述關(guān)于某一形式命令的特性(描述性的和功能性的信息)。在vb中很多特性基本上存在每一個(gè)對象中。幫助在你指尖中 在線圖書就是關(guān)于vb的電子圖書適合
18、vb程序員。 vb的在線幫助系統(tǒng)是市場上最先進(jìn)的系統(tǒng)之一。當(dāng)你需要幫助做一個(gè)控制,窗口,工具,或者命令時(shí),請按f1。vb分析你所做的并提供幫助。除此之外,vb還提供一個(gè)巨大的幫助資源叫做在線圖書。當(dāng)你在幫助菜單中選擇了在線圖書時(shí),vb會(huì)展示關(guān)于vb的一系列樹狀結(jié)構(gòu)形式的書,這樣你就能找到你所需要的書籍并閱讀。這個(gè)在線幫助也擴(kuò)展到internet上。如果你可以連接到internet,那么你就可以通過選擇在線幫助/微軟瀏覽到最新的幫助主題。總結(jié)這段時(shí)間快速的帶你熟悉vb。你或許已經(jīng)比開始時(shí)更明白vb了。程序員用vb開發(fā)非常先進(jìn)的windows應(yīng)用程序?,F(xiàn)在你明白了vb的用途和怎樣去打開、關(guān)閉vb,
19、你準(zhǔn)備好全心的投入到vb的學(xué)習(xí)中。 附件2:外文原文(復(fù)印件)whats visual basic about?controls are tools on the toolbox window that you place on a form to interact with the user and control the program flow.microsoft visual basic 5.0, the latest and greatest incarnation of the old basic language, gives you a complete windows app
20、lication development system in one package. visual basic (or vb, as we often call it) lets you write, edit, and test windows applications. in addition, vb includes tools you can use to write and compile help files, activex controls, and even internet applications.visual basic is itself a windows app
21、lication. you load and execute the vb system 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, test, and run windows applications.altho
22、ugh programmers often use the terms program and application interchangeably (as will be done throughout this 24-hour course), the term application seems to fit the best when youre describing a windows program because a windows program typically consists of several files. these files work together in
23、 the form of a project. the project generates the final program that the user loads and runs from windows by double-clicking an icon or by starting the application with the windows start menu.the role of programming tools has evolved over the past 45 years along with computer hardware. a programming
24、 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 were available a few years ago. before windowed environments, a programming language was a simple text-based
25、tool with which you wrote programs. today you need much more than just a language; you need a graphical development tool that can work inside the windows system and create applications that take advantage of all the graphical, multimedia, online, and multiprocessed activities that windows offers. vi
26、sual basic is such a tool. more than a language, visual basic lets you generate applications that interact with every aspect of todays windows operating systems. if youve taken a look at visual basic in the past, youll be amazed at todays visual basic system. vb now sports a true compiler that creat
27、es standalone runtime .exe files that execute more quickly than previous vb programs. vb also includes several wizards that offer step-by-step dialog box questions that guide you through the creation of applications. vbs development platform, a development environment called the developer studio, no
28、w supports the same features as the advanced visual c+ and visual j+ compilers. therefore, once you learn one of microsofts visual programming products, you will have the skills to use the other language products without a long learning curve ahead of you.languagesprogramming languages today are not
29、 what they used to be. the language itself has not gotten less important; rather, the graphical interfaces to applications have gotten more important.a computer cannot understand any persons spoken language. a spoken language, such as italian or english, is simply too general and ambiguous for compu
30、ters to understand. therefore, we must adapt to the machine and learn a language that the computer can understand. vbs programming language 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 b
31、asic language, the statement never has multiple meanings within the same context.as you progress through the next 24 hours, you will learn more and more of the visual basic languages vocabulary and syntax (grammar, punctuation, and spelling rules). you will use the vb programming language to embed i
32、nstructions within applications you create. all the code you write (code is the programs instructions) must work together to instruct the computer. code is the glue that ties all the graphics, text, and processes together within an application. code tells a checkbook application, for example, how to
33、 be a checkbook application and not something else. the program code lets the application know what to do given a wide variety of possible outcomes and user actions. the vb programming processwhen you want to use visual basic, youll follow these basic steps: 1. start visual basic.2. create a new app
34、lication or load an existing application. when you create a new application, you might want to use visual basics vb application wizard to write your programs initial shell, as youll do in the next hour. 3. test your application with the debugging tools visual basic supplies. the debugging tools help
35、 you locate 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. rarely will you perform all these steps sequentially in one sitting. th
36、e six steps are not sequential steps, but stages that you go through and return to before completing your application. starting visual basicyou start visual basic from the windows start menu. the visual basic development environment itself usually appears on a submenu called microsoft visual basic 5
37、.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 submenu, visual basic loads and appears on your screen.on most systems, figure 1.1s
38、 dialog box appears as soon as you start visual basic. the dialog box lets you start the vb application wizard, edit an existing vb project, or select from a list of recent projects youve worked on, depending on the dialog box tab you click.as you can see at the bottom of the dialog box, you dont ha
39、ve to see the dialog box every time you start visual basic. if you click the option labeled dont show this dialog box in the future, visual basic will not display the opening dialog box when you start visual basic.figure 1.1. the new project dialog box often appears when you start vb. once you close
40、 the dialog box, the regular visual basic screen appears. as figure 1.2 shows, vbs 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 pr
41、ograms. figure 1.2. vbs screen looks confusing at first. although the screen can look confusing, you can fully customize the visual basic screen to suit your needs and preferences. over time, you will adjust the screens window sizes and hide and display certain windows so that your visual basic scre
42、ens start-up state might differ tremendously from that of figure 1.2.待添加的隱藏文字內(nèi)容2stopping visual basicyoull exit from visual basic and return to windows the same way you exit most windows applications: select file|exit, click visual basics main window close button, press alt+f4, or double-click vbs c
43、ontrol menu icon that appears in the upper-left corner of the screen.if you have made changes to one or more files within the currently open project (remember that a project is the collection of files that comprise your application), visual basic gives you one last chance to save your work before qu
44、itting to windows. mastering the development environmentlearning 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 some of the development environments
45、more fundamental principles, you will be better able to learn visual basic. you then will be more comfortable within vbs environment and will have a better understanding of the related words when subsequent lessons refer to the windows and tools in the development environment.figure 1.3 shows the vi
46、sual basic development environment with many of the more important screen components labeled. as you can see from the menu and toolbar, visual basic looks somewhat like other windows programs on the market. many of visual basics menu bar commands work just as they do in other applications such as mi
47、crosoft 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 windows program on the market today. figure 1.3. getting to know the development environment. standards: the menu bar and to
48、olbarvisual basics menu bar and toolbars work just as you expect them to. you can click or press a menu bar options hotkey (for example, alt+f displays the file menu) to see a pull-down list of menu options that provides either commands, another level of menus, or dialog boxes. many of the menu opti
49、ons have shortcut keys (often called accelerator keys) such as ctrl+s for the file|save option. when you press an accelerator key, you dont first have to display the menu to access the option.the toolbar provides one-button access to many common menu commands. instead of selecting edit|paste, for ex
50、ample, you could click the paste toolbar button. as with most of todays windows applications, visual basic supports a wide range of toolbars. select view|toolbars to see a list of available toolbars. each one that is currently showing will appear with a checkmark by its name. the form window: where
51、it all happensthe form window is your primary work area. although the form window first 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 calculators buttons
52、all reside on the form window and when someone runs the calculator, the calculator that appears is really just the applications form window with components placed there and tied together with code. note:you will not see program code on the form window. the form window holds the programs interactive
53、objects, such as command buttons, labels, text boxes, scrollbars, and other controls. the code appears elsewhere 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 ed
54、itor with which you write the programming statements that tie together the application. consider the sample program running in figure 1.4s window. the window shows a simple dialog box with a few options, text boxes, and command buttons.the programmer who created figure 1.4s dialog box did so by open
55、ing a form window, adding some controls (the items on the form window that interact with the user-sometimes called tools), and tying the components together with some visual basic language code. thats exactly what you will do when writing simple and complex visual basic applications. you will begin
56、with a blank form window and add controls to the form window such as options and command buttons. perhaps your application might even require multiple form windows. note: some applications, such as word, allow for several form windows in a special mode called mdi (multiple-document interface) in whi
57、ch you can open multiple data documents within the same application. an application that requires only a single data window is called 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 do not hold multiple data files but only provide extended support for extra dialog boxes and secondary work screens. source program is code, forms, menus, graphics, and help files that you create and edit to form the proj
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 有效管理時(shí)間的月度工作方案計(jì)劃
- 儀表知識(shí)溫度培訓(xùn)課件
- 第24課《唐詩三首》之《茅屋為秋風(fēng)所破歌》教學(xué)設(shè)計(jì) 2023-2024學(xué)年統(tǒng)編版語文八年級(jí)下冊
- 某婦產(chǎn)醫(yī)院品牌推廣部網(wǎng)絡(luò)推廣工作思路
- 2025年青海普通貨運(yùn)從業(yè)資格證模擬考試
- 2025年淮南駕駛資格證模擬考試
- 2025年杭州貨運(yùn)從業(yè)資格模擬考試
- 2025年上海貨運(yùn)從業(yè)資格證考試試題及答案
- 2025年德州c1貨運(yùn)從業(yè)資格證考試內(nèi)容
- 2025年陜西貨運(yùn)叢業(yè)資格證考試題目及答案
- 福晨河北科技發(fā)展有限公司年分裝500噸化學(xué)試劑建設(shè)項(xiàng)目環(huán)境影響報(bào)告表
- 地磁磁場的基本特征及應(yīng)用
- 國內(nèi)外鋼材牌號(hào)對照表
- 一年級(jí)下冊地方課程教案
- 有趣的仿生設(shè)計(jì)(課堂PPT)
- 第二章 航空飛行常見疾病
- 個(gè)體診所聘用醫(yī)師合同范本
- 航運(yùn)公司開展安全管理體系有效性
- 牛羊定點(diǎn)屠宰廠項(xiàng)目可行性研究報(bào)告-甲乙丙資信
- 妊娠糖尿病-楊慧霞.ppt
- 上海機(jī)場控制區(qū)通行證申請表(人員)
評論
0/150
提交評論