【正文】
發(fā)展環(huán)境隨后 涉及 的 窗口 和工具時將 更好的理解 一些聯(lián)系的詞。你能從菜單和工具條 發(fā)現(xiàn) , Visual Basic 有點(diǎn) 像 市場 上其它 的 Windows 程序。例如,你能選擇編輯 |剪 切 和 編輯 |粘貼來從一個地方剪切正文粘貼到另一個地方 。 數(shù)字 。 標(biāo)準(zhǔn) : 菜單條和工具條 Visual Basic 的菜單條和工具條 正如你期待它們的一樣工作。許多菜單選擇有 快捷鍵 (經(jīng)常被叫了的加速器鑰匙 )例如 Ctrl+S 為文件 |保存選項(xiàng) 。 工具條提供 一個按鈕存取 許多普通的菜單命令。就象今天大多數(shù)的 Windows 應(yīng)用程序, Visual Basic 支持大量工具條。每一個 都普遍的以一個有名字的檢查標(biāo)記出現(xiàn)。盡管表格窗口起初相對于你的屏幕來說是很小,但是表格窗口包含你的應(yīng)用程序的背景。 提 示 :在表格窗口里你將不會看到程序的代碼。這些代碼在別處出現(xiàn),這個特殊的窗口被稱為代碼窗口。一個代碼窗口要比一個文本編輯器小,文本編輯器就是你寫連接程序的程序說明時所使用的工具。這個窗口顯示一個簡單的帶有一系列選擇的對話框、文本框和命令按鈕。那就是你將要做的不管是你寫簡單的還是復(fù)雜的 VB應(yīng)用程序?;蛟S你的程序甚至需要多個表格窗口。只需要一個簡單的數(shù)據(jù)窗口的程序稱為一個 SDI( singledocument interface)程序,例如 Windows 的記事本程序一次只允許用戶打開一個 數(shù)據(jù)文檔。 源程序是代碼,表格,菜單,圖表和你為形成一個工程而創(chuàng)建和編輯的幫助文件(也稱為源代碼)。當(dāng)你或者其他的用戶連接或運(yùn)行這個源程序, VB 將程序翻譯成一個可執(zhí)行的程序。如果你在運(yùn)行程序的過程中發(fā)現(xiàn)一些小錯誤,你必須修改源程序(在這個工程中包含多個文件)并再運(yùn)行和再編譯這個源程序。你將在下一節(jié)課的時間學(xué)習(xí)到如何在表格窗口里放置工具箱命令。這些被稱為固有命令因?yàn)?VB 的三個版本都支持這些標(biāo)準(zhǔn)的工具。一些額外的工具在 VB 的三個版本中,但是這些額外的工具并不出現(xiàn)在工具箱窗口中,除非你通過工程 /組件菜單選擇中加入它們。 表格設(shè)計窗口放置表格 表格設(shè)計窗口展現(xiàn)最初的位置和在表格窗口顯示出來的正確的表格的相關(guān)的大小。帶有文本框題目的表格只是若干表格中的一個。如果你想讓某個表格在當(dāng)前位置的不同地方出現(xiàn)的話,那么你可以在表格設(shè)計窗口內(nèi)將表格移動到表格出現(xiàn)的位置當(dāng)用戶運(yùn)行這個程序時。 工程資源管理器窗口 工程資源管理器窗口,經(jīng)常被稱為工程窗口,為你提供在應(yīng)用程序中所有文件的樹狀結(jié)構(gòu)。你可以擴(kuò)展和結(jié)合觀點(diǎn)的分支以獲得多多少少的描述。 每次當(dāng)你點(diǎn)擊一個不同的表格窗口工具時,一個不同的列表將會在道具窗口中顯示出來。在 VB 中很多特性基本上存在每一個對象中。 VB 的在線幫助系統(tǒng)是市場上最先進(jìn)的系統(tǒng)之一。 VB 分析你所做的并提供幫助。當(dāng)你在幫助菜單中選擇了在線圖書時, VB 會展示關(guān)于 VB的一系列樹狀結(jié)構(gòu)形式的書,這樣你就能找到你所需要的書籍并閱讀。如果你可以連接到 Inter,那么你就可以通過選擇在線幫助 /微軟瀏覽到最新的幫助主題。你或許已經(jīng)比開始時更明白 VB 了?,F(xiàn)在你明白了 VB 的用途和怎樣去打開、關(guān)閉 VB,你準(zhǔn)備好全心的投入到 VB 的學(xué)習(xí)中。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 user loads and runs from Windows by doubleclicking 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 puter 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 were available a few years ago. Before windowed environments, a programming language was a simple textbased tool with which you wrote programs. Today you need much more than just a language。s Windows operating systems. If you39。ll be amazed at today39。s development platform, a development environment called the Developer Studio, now supports the same features as the advanced Visual C++ and Visual J++ pilers. Therefore, once you learn one of Microsoft39。 rather, the graphical interfaces to applications have gotten more important. A puter cannot understand any person39。s programming language is fairly simple and uses mon 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 meanings within the same context. As you progress through the next 24 hours, you will learn more and more of the Visual Basic language39。s instructions) must work together to instruct the puter. 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 be a checkbook application and not something else. The program code lets the application know what to do given a wide variety of possible outes and user actions. The VB Programming Process When you want to use Visual Basic, you39。s VB Application Wizard to write your program39。ll do in the next hour. 3. Test your application with the debugging tools Visual Basic supplies. The debugging tools help 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. The six steps are not sequential steps, but stages that you go through and return to before pleting your application. Starting Visual Basic You start Visual Basic from the Windows Start menu. The Visual Basic development environment itself usually appears on a submenu called Microsoft Visual Basic , although yours might be called something different due to installation differences. You will see additional programs listed on the Microsoft Visual Basic submenu, but when you select Visual Basic from the submenu, Visual Basic loads and appears on your screen. On most systems,