Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to set a progress bar in program.cs while opening a connection string in c#...
Posted
Comments
Akinmade Bond 6-May-13 16:38pm    
You can just make things up until you're certain the connection to the DB has been established. There is no way to check for the progress of a connection to the database.

1 solution

As far as I know you cannot show a meaningful bar showing the database connection progress, since your code performs such connection in a single call.
 
Share this answer
 
Comments
Korathu 2 6-May-13 14:33pm    
will backroundworker in program.cs work out
CPallini 6-May-13 15:30pm    
No, because, being a single call, you don't know the progress of the operation: you have just two istants: the start of the operation (0% progress) and its end (100% progress).

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