Wait cursor while loading the Form (C#.net windows)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DKn
    New Member
    • Aug 2007
    • 53

    #1

    Wait cursor while loading the Form (C#.net windows)

    Hello All,

    I am doing one C#.net windows application.
    At the time of loading the form , some operations need to be done, so it will take time( one or two minutes) to load the form. At this time, I want to show a message to the user like "Loading the Project ..Please wait" with a wait cursor. Once the form is loaded, the message and wait cursor should go.


    How to do this?

    Thanks in advance..
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    One to two minutes to load the form?!? That's a pretty extensive amount of code. Have you not thought about threading the load? The change of the mouse cursor is easy enough.

    Me.Cursor = Cursors.AppLoad ing

    Or you could add a splash screen to your application... so many ways to skin a cat.

    Comment

    • DKn
      New Member
      • Aug 2007
      • 53

      #3
      In C#.Net Cursors.AppLoad ing is not there.
      I have tried with this.. no use.
      this.Cursor = Cursors.AppStar ting;
      Thanks for you reply. Any other ways to do this.

      Originally posted by balabaster
      One to two minutes to load the form?!? That's a pretty extensive amount of code. Have you not thought about threading the load? The change of the mouse cursor is easy enough.

      Me.Cursor = Cursors.AppLoad ing

      Or you could add a splash screen to your application... so many ways to skin a cat.

      Comment

      Working...