A
alexl
I derive an object from a Form and instantiate it like this
//sc is the instance of an object derived from Form
Thread t = new Thread(() =>
{
IntPtr dummy = sc.Handle;
//above statement creates the window
Application.Run();
});
then when I want to call a method of sc from the other thread I do
sc.BeginInvoke (....);
thanks
//sc is the instance of an object derived from Form
Thread t = new Thread(() =>
{
IntPtr dummy = sc.Handle;
//above statement creates the window
Application.Run();
});
then when I want to call a method of sc from the other thread I do
sc.BeginInvoke (....);
thanks