Click here to Skip to main content
16,013,581 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I have a web service that it gets some data from data base and show them to user.
im calling my service in my constructor
But i get the result when my UI completely loaded and user has to wait till the web service retrieve the data and then the webservice_completed method has been called and there im going to show the data to user

How can i solve my problem and when user Opened the form ( or User-control ) it contains data ???
thank you
Posted
Updated 14-Aug-11 3:30am
v2

1 solution

Have you tried placing the code to retrieve the data before InitializeComponent() in the .cs file?
 
Share this answer
 
Comments
pouya_devil 14-Aug-11 10:29am    
Yes i try to get data into constructor .. but it do not execute the Async method till UI completely load ...

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