tailieunhanh - Programming Visual Basic 2008 phần 3

Dự án của chương này chính thức bắt đầu mã hóa của Dự án Thư viện (tắt tiếng vỗ tay). Chúng tôi sẽ bắt đầu với một cái gì đó đơn giản: xây dựng dưới hình thức Thông tin về cung cấp thông tin cơ bản về ứng dụng, bao gồm cả số phiên bản của nó. | Although not actually parts of an assembly this chapter also discussed the My namespace and directives two Visual Basic features that impact what gets included in your assembly. Project This chapter s project officially kicks off the coding of the Library Project muted applause . We ll start off with something simple building the About form that provides basic information about the application including its version number. PROJECT ACCESS Load the Chapter 5 Before Code project either through the New Project templates or by accessing the project directly from the installation directory. To see the code in its final form load Chapter 5 After Code instead. Our goal is a pleasant form that conveys basic information about the program a form that looks something like Figure 5-4. Figure 5-4. Everything you wanted to know about the program Like any Visual Basic application for Windows the creation of this form involves two steps 1 adding controls to the form and 2 writing the related code. Project 137 Adding Controls If there is one area where Visual Basic excels it is form creation. Programs can be created by the simple dragging and dropping of prebuilt controls onto the surface of a prebuilt form. It s all done from within the comfort and convenience of the Visual Studio Integrated Development Environment IDE as shown in Figure 5-5. Figure 5-5. The Visual Studio environment The displayed environment includes four key areas which I ve labeled with letters in Figure 5-5 A. The toolbox This listing of controls includes not only display controls but also controls that expose no specific user interface such as the Timer. If you don t see the toolbox select the View Toolbox menu command. To add a control to a form double-click the control in the toolbox drag it from the toolbox to the form or draw the control on the form after first selecting it from the toolbox. B. The form surface Place any control that exposes a user interface here. The form is WYSIWYG so you can see the .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.