Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm making a middle level application for a firm in C#.NET (2.0) with MySql 5.0 as DB.
The main problem i'm facing is the latency in loading the GUI window.
The GUI window is full of Controls about 30 components. About half of them are data binding controls. So, when the window loads, the user suffers the latency of 5 seconds. All I'm thinking right now is to implement multithreading. The first thread is for loading the data binding and second one is to show the UI; but i'm in vein. Because, the thread in which i do the databinding don't allow me to access the GUI component coz the components were created in another thread. Please help me in this scenario asap.
Thanx in advance!
-Satyam
Posted
Updated 18-Jan-10 18:35pm
v2

1 solution

You can launch a thread on the GUI thread from another thread with InvokeRequired and Invoke. That's if you are using Windows Forms. If you are using WPF, you can do the same thing with the Dispatcher.
 
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