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. Freeze form when it removing and reloading ctls

Freeze form when it removing and reloading ctls

Scheduled Pinned Locked Moved C#
designtutorialquestion
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.
  • C Offline
    C Offline
    Chris 3
    wrote on last edited by
    #1

    I have many datagrid-like line item cotrols in a winform form, after user comfirm changes, I need to remove those controls and reload them on the form. The user interface now showing the whole process of removing ctls and reloading. I do want user to have a wait cursor and the form freeze for a while until the process is done, any idears on how to accomplish it?

    J 1 Reply Last reply
    0
    • C Chris 3

      I have many datagrid-like line item cotrols in a winform form, after user comfirm changes, I need to remove those controls and reload them on the form. The user interface now showing the whole process of removing ctls and reloading. I do want user to have a wait cursor and the form freeze for a while until the process is done, any idears on how to accomplish it?

      J Offline
      J Offline
      Julian Bucknall MSFT
      wrote on last edited by
      #2

      Use the form's SuspendLayout() and ResumeLayout() methods. Cheers, Julian Program Manager, C# This posting is provided "AS IS" with no warranties, and confers no rights.

      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