dear all;
thnx for all your replays .. i tried your options and i want to ask if that was right and is are the 2 threads working in paralel or not..
and here is my code :
// in the Form.Load()
Timer1.Enabled = true;
Timer1.Start();
if (InvokeRequired)
{
Invoke(new GetFromServerHandler(GetFromServer));
Invoke(new GetFromPCHandler(GetFromPC));
}
else
{
ServerQuranTreeView.Nodes.Clear();
GetFromServer();
GetFromPC();
}
// another 2 functions, which are the delegate and the function (GetFromServer) and (GetFromPC)
private delegate void GetFromServerHandler();
private void GetFromServer()
{
}
private delegate void GetFromPCHandler();
private void GetFromPC()
{
}
// now the application takes a few second to start up (and i explained that it required this time to get data from server)
is that right, or i missed somthing ?
thnx in advance