tailieunhanh - microsoft visual basic 2008 step by step phần 6

Bởi vì một mô-đun chỉ chứa mã, nó chỉ có một vài thuộc tính. Bằng cách sử dụng File Name tài sản quan trọng nhất, bạn có thể tạo một tên tập tin tùy chỉnh cho mô-đun để mô tả mục đích của nó. Cho nhãn này xác định một số suy nghĩ bởi vì sau này bạn có thể muốn kết hợp mô-đun của bạn vào một giải pháp khác. | Chapter 10 Creating Modules and Procedures 257 Properties 151 Build Action File Properties .1 Compile Copy to Output Directory Do not copy Custom Tool Custom Tool Namespace File Name Build Action How the file relates to the build and deployment processes. Because a module contains only code it has only a few properties. By using the most significant property File Name you can create a custom file name for the module to describe its purpose. Give this identifying label some thought because later you might want to incorporate your module into another solution. The remaining properties for the module are useful for more sophisticated projects you don t need to worry about them now. 7. Change th e File Name property to Math or another file name that sounds impressive and then press Enter. I m granting you considerable leeway here because this project is simply for testing purposes you won t actually create math functions or any other content for the module and later you ll discard it. The file name for your module is updated in the Properties window Solution Explorer and the Code Editor. 8. Return the Properties window and Solution Explorer to their regular docked positions by double-clicking their title bars. As you can see working with modules in a project is a lot like working with forms. In the next exercise you ll add a public variable to a module. Tip To remove a module from a project click the module in Solution Explorer and then click the Exclude From Project command on the Project menu. Exclude From Project doesn t delete the module from your hard disk but it does remove the link between the specified module and the current project. You can reverse the effects of this command by clicking the Add Existing Item command on the Project menu selecting the file that you want to add to the project and then clicking Add. 258 Part II Programming Fundamentals Working with Public Variables Declaring a global or public variable in a .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
10    107    1    29-11-2024