Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

really easy one

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA
hey all,
really simple question... i am a complete beginner, and my help files are all messed up....

what is the comman code to load, and unload forms, and when should i use them, and when should i not use them?

thanks in advance to anyone who can help.

adam.
 
Do remove a code completely from memory:
Code:
Unload Formmane

To hide it
Code:
formname.hide

To show a hidden window
Code:
formname.show

Al forms made in the IDE are loaded at startup so there is no loading nessasary unless you unload them. Brad,
Free mp3 player,games and more.
 
>Al forms made in the IDE are loaded at startup

Actually, they are not. What is true is that any reference to a property or method of a form will cause it to initialise and load.
 
hi!,
lil' sample ....

lets say that you have main form (frmMain), this is the startup object, and a config form (frmConfig).

When the app starts, the application automatically loads the main form (frmMain). at frmMain_Load() you can:

Load the config form (frmConfig) with Load frmConfig, this made the form be in memory but "hiden". In this way, when you just do frmConfig.Show (in a command button i.e.) it will take less time to show (but more mem,b/c the form is always in mem) than just doing frmConfig.show.
Ofcourse you can only do frmConfig.show, it only loads the form in that moment, it will take less mem, but more time.

hope it helps ...... ::)
bluenote@uyuyuy.com
(excuse my english)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top