Results 1 to 4 of 4

Thread: [2005] How to draw faster on a form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Question [2005] How to draw faster on a form

    Hi Guys

    There is a form which dynamically lists number of boxes on runtime on a splitcontainer.. around 400 small boxes with numbers. Now the drawing of it is bit slow.. maybe 5-6 sec..

    I want to speed it up. Someone suggest to tinker with SuspendLayout and ResumeLayout in the form1.designer.vb .. Can anyone suggest?? or any other way??

    newbie

  2. #2
    Addicted Member garyjohn_2000's Avatar
    Join Date
    Apr 2005
    Location
    Timbaland
    Posts
    243

    Re: [2005] Regarding SuspendLayout and ResumeLayout

    Try setting the DoubleBuffer bit of the Form to True.


    Anyone who has never made a mistake has never tried anything new. - Einstein
    Peace!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Regarding SuspendLayout and ResumeLayout

    What exactly are you talking about when you say "boxes"? Please be plain and clear. Tell us exactly what you're doing and maybe even show us the code.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Re: [2005] Regarding SuspendLayout and ResumeLayout

    Quote Originally Posted by jmcilhinney
    What exactly are you talking about when you say "boxes"? Please be plain and clear. Tell us exactly what you're doing and maybe even show us the code.
    The boxes are actually one button overlapping the other in a small form. and they are redrawn again and again in a larger form..

    The code might confuse as there are lots of pages needed to be posted here.. its not exactly my program so i cant do that.. I m just suppose to make it better..
    Attached Images Attached Images  

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