Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all,

I am trying to put progress bar on user login form (login authentication time) in window application, but i have a problem when i click on login button then control went to web services this time my form looking like dead, i have one progress bar on this form it is also stop.

i am trying to show progress bar on my window form at login authentication time, if any one know any solution please let me know.

Thanks
Posted

IMO you should use a wait cursor rather than a progressbar. A progressbar is an indicator of a fixed and know time or quantity, the login process is indeterminate.
 
Share this answer
 
Comments
Santosh Singh Lodhi 22-Nov-11 0:00am    
Thanks,

This is a good solution for login user authentication...

Thank you so much..
hi,


try wait cursor for user login Authentication.


Cursor.Current = Cursors.WaitCursor;
 
Share this answer
 
Just as an additional hint to Marks answer, you should use try/finaly.
If there's something going wrong while authentication your WaitCursor will stay.

C#
try
{
   Cursor.Current = Cursors.WaitCursor;
   // do authentication;
}
catch (Exception ex)
{
   // handle exception
}
finally
{
   Cursor.Current = Cursors.Default;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900