Results 1 to 3 of 3

Thread: Need help, new to programming active x controls

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    46

    Need help, new to programming active x controls

    Which method activates when a program containing a control is run. Is that Initialize, cause if so then MSDN is confusing, they say it occurs when a new instance is created, but I'm talking about when one is created at design time and then the program is run.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    When you site a control on a form in the IDE a "design time instance" of the control is created.

    When your program executes a "run time instance" is created.

    When you start your program from within the VB IDE you are switching between design time and run time. The first thing that happens is your "design time instances" are terminated. Then your "run time instances" are created.


    There is a topic in MSDN called "Understanding Control Lifetime and Key Events" that explains it pretty well.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    46
    So Initialize is the correct method then.

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