Search
Left Quote    Every day I get up and look through the Forbes list of the richest people in America. If I’m not there, I go to work.
- Robert Orben    
Right Quote
 
[login] | [Register]
 

Getting Started with VB 6.0

by: bs0d
Page: 9 of 9
(View All)

Multiple Forms, ME Keyword and Conclusion


A 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 execss 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 disection 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


1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  


No Comments for this page.

You Must be logged in or a member to comment.


Tutorial Stats

Tutorial Stats

93,695 Views
0 Total Comments
4.16 Rating of 5 (6 Votes)

Options

Tutorial Options

· Login to Rate This Article
· Login to Post a Comment
· Read more by this author
Digg This Article! Del.icio.us: Bookmark This Article Reddit: Bookmark This Article BlinkList: Blink This Article! YahooMyWeb BlogMarks: Add This Mark! Furl: Save This Article Spurl: Mark This Article

Articles

Related    

· Coding a Webserver
· Using Crystal Reports in VB
Your Article Here


"AllSyntax.com" Copyright © 2002-2010; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank
Renegade Motorhomes - Credit Card Consolidation - Debt Consolidation - Credit Consolidation