Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WinForms: SuspendLayout on Application

WinForms: SuspendLayout on Application

Scheduled Pinned Locked Moved C#
csharpwinformsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    troels_sorensen
    wrote on last edited by
    #1

    Hi. I just found the wonderfull SuspendLayout Method on the WinForm class.:cool: I was wondering if there is a similar feature to susoend the layout for the whole Application in multible forms, without doing it on every single form? Something like Application.SuspendLayout();;) Any ideas or suggestions?

    H 1 Reply Last reply
    0
    • T troels_sorensen

      Hi. I just found the wonderfull SuspendLayout Method on the WinForm class.:cool: I was wondering if there is a similar feature to susoend the layout for the whole Application in multible forms, without doing it on every single form? Something like Application.SuspendLayout();;) Any ideas or suggestions?

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      No, and why would there be? The whole idea of object-oriented programming is that objects are responsible for themselves (encapsulation, data hiding, etc.). Each form initializes it's surface so you just need to suspend and resume the layout in each. An Application in Windows Forms really just represents the message pump that keeps the main window (Form) alive and dispatches window messages to their respective windows.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups