Results 1 to 2 of 2

Thread: Memory: Module Subs vs. ActiveX Subs

  1. #1

    Thread Starter
    Lively Member Rockman's Avatar
    Join Date
    Apr 2001
    Posts
    66

    Memory: Module Subs vs. ActiveX Subs

    I've created my first activeX usercontrol, a souped up textbox. Should I put all the subroutines (gotFocus, KeyDown, etc.) in the control's code or should I put all the subroutines into a public module.

    i.e. By putting the subroutines in the control's code, does VB replicate the code for each instance of the control used in the project? And thereby, chew up memory?

    Am I better off placing the routines in a module that all controls will have access to?

    Thanks for any insights,
    Jeff

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think its the same either way.

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