![]() |
|
||||||
Multiple Forms, ME Keyword and ConclusionA VB project can consist of several forms. Each form has its own window, form load section, general declarations section and code window. All of the forms in a project are tied together under the project name. When you run the program, you can switch back and forth between different forms. StartUp Form - The first form a project displays when the project is loaded. Load - Loads a form into the computers memory (does not display on screen.) · Load < form_name > Unload - Unloads the form from the computers memory. Also, if you’re running an excess amount of forms, you should unload them to save on memory. · Unload < form_name > Show - Display the loaded form on the screen. · < form_name > .Show Hide - Makes the form disappear. The form will still be loaded into memory. It just will not be displayed on the screen. · < form_name > .Hide ME KEYWORD:You can refer to the current form by using the special keyword ME. Me acts like a variable and refers to the form that is currently active. You can use Me in place of the form name when coding statements and methods. Examples: Conclusion:I feel I have provided a nice strong start to learning Visual Basic 6.0. This tutorial does not cover many things and was never intended to be a highly technical detailed analysis and dissection of VB. However, you can learn a lot by simply playing around with the program and becoming more familiar and comfortable with its functions. I am sure that I left a lot of things out that should have made it in, and also discussed things I could have left out- but a line has to be drawn somewhere. So by all means, check out other VB tutorials on the site and other code samples available as well. I hope you enjoyed the article and are ready to get started with Visual Basic!!! -bs0d | www.allsyntax.com
No Comments for this page. |
|
|||||||||||||||||||||||||||||||