I have a user control that takes a several seconds to load. Is there a way to preload the control while the form is being loaded?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of doing a bunch of work in the UserControl’s constructor or Load event, do it in a worker thread. BackgroundWorker is good for that. This will give you quick startup of the form, but not necessarily quick availability of the user interface. Consider a splash screen.