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. form launching problem

form launching problem

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

    Hi, I have a window form which consists of many controls and logic inside, so when the form is being shown, the controls rendering process on the form last for 2-3 seconds. How can I use a wait cursor and show the form immediately without the rendering process being seen by users ? Thanks

    A E 2 Replies Last reply
    0
    • K Kim0618

      Hi, I have a window form which consists of many controls and logic inside, so when the form is being shown, the controls rendering process on the form last for 2-3 seconds. How can I use a wait cursor and show the form immediately without the rendering process being seen by users ? Thanks

      A Offline
      A Offline
      Andrei Ungureanu
      wrote on last edited by
      #2

      Hy, I don't know if this will help you but try to delete the this.ResumeLayout(false) line from the InitializeComponent function and put it in the FormLoad event. If you load some controls in a dynamic way write the line this.SuspendLayout() in the begining of the code where you load the controls and the this.ResumeLayout(false) when you finish loading. It helped me some times. Hope this is a solution for you.

      Do your best to be the best

      1 Reply Last reply
      0
      • K Kim0618

        Hi, I have a window form which consists of many controls and logic inside, so when the form is being shown, the controls rendering process on the form last for 2-3 seconds. How can I use a wait cursor and show the form immediately without the rendering process being seen by users ? Thanks

        E Offline
        E Offline
        engsrini
        wrote on last edited by
        #3

        You can set the form's cursor property into wait cursor at the Form_load event. instead You can improve the Form loading performace by setting form's property DoubleBuffered=true

        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