Results 1 to 5 of 5

Thread: load vs show

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    11

    load vs show

    dear all, i am newbie in programming..
    what is the different between load and show. When i created login form, after a user succesfully login, i apply
    load MDImain, but it didn't work. when i changed: MDImain.show..it worked. could you explain how it works? what should i dó to show MDImain using code "load MDImain"

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: load vs show

    Load does just that... loads the form... .Show shows the form... if the form hasn't been loaded when the show method is called, it will get loaded at that time.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: load vs show

    When you do Load frmMain, frmMain's Initialize event will be triggered, then Load event. But that's it, the form wont shown and the Activate event will not be triggered. When you do frmMain.Show it will fire all three (Initialize, Load, Activate, in that order) unless the form has been loaded before that in which case only Activate even will be triggered.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    11

    Re: load vs show

    thanx for the answers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width