Results 1 to 2 of 2

Thread: SuspenLayout and ResumeLayout?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    SuspenLayout and ResumeLayout?

    what do those functions exactly do? do they kinda suspend the update of control events and stuff?
    I'm adding a whole bunch of controls dynamically and I'm wondering if I should call SuspendLayout before adding the controls.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    From "Professional VB.NET" - Wrox Press
    SuspendLayout "stops the layout engine of the form from working." P 64

    ResumeLayout "turns the layout logic of the form back on." P65

    -----------------------
    As for needing to do it when adding controls dynamically, I can't find it used in any book other than in the form code where the form is initially created, so I don't think it's necessary.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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