Results 1 to 5 of 5

Thread: grouping routines as #region [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    grouping routines as #region [RESOLVED]

    If you have a LOT of code in the FORM_LOAD event, how can you fix it like #region / #end region? I know you can't use region/end region within a sub. I would just like to be able to minimize each sub-section in the _load event cause mine usually has a LOT of code to initialize parameters and such.

    Any ideas?
    Last edited by Andy; Feb 11th, 2004 at 09:33 PM.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You could break out parts of the code you normally run in Load into their own method then stick that in a region and just call it from Load.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    C# can do that as well .

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    c# can do What I'mwanting? neat. Maybe I sould statlearning hat as well.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yes , it does. And a lot of new changes in the next version for C# only .

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