Results 1 to 7 of 7

Thread: How do I create lots of controls faster in a dynamic form?

Hybrid View

  1. #1

    Thread Starter
    Lively Member Christhemist's Avatar
    Join Date
    Sep 2016
    Location
    Nevada
    Posts
    116

    Re: How do I create lots of controls faster in a dynamic form?

    This is what ended up working for me:

    Code:
    QC_Panel.SuspendLayout()
    Call GetData()
    Call CreateControls()
    QC_Panel.ResumeLayout()
    For whatever reason, separating out the SQL statements from the control creations speeded things up a lot.

    However, my form still locks up my computer up when it loses focus... I'm going to create a new forum post about this as I have not seen anything on the web that describes this issue. But if you would like to give me insight on this thread that would be great!

    Edit: new thread about form freezing: https://www.vbforums.com/showthread....81#post5489181

    Thanks for the help all!
    Last edited by Christhemist; Aug 4th, 2020 at 11:41 AM.

Tags for this Thread

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