M
momonga
hi everyone.
i'm working on vs2003 and C#.
it is windows application that i'm creating.
so i have a form.
i created worker-thread and the worker thread calls back the callback-
method in the form.
in the callback-method, i'm going to implement the code that adds a
TabPage object to TabControl that's created by main-thread.
so i receive the exception that says "dont add the control to another
they are created by the diffrent thread." or something like that.
i need something like the PostMessage in win32.
to order the main-thread to perform the job on befalf of the worker-
thread.
please could you tell me how to do that?
thanks.
i'm working on vs2003 and C#.
it is windows application that i'm creating.
so i have a form.
i created worker-thread and the worker thread calls back the callback-
method in the form.
in the callback-method, i'm going to implement the code that adds a
TabPage object to TabControl that's created by main-thread.
so i receive the exception that says "dont add the control to another
they are created by the diffrent thread." or something like that.
i need something like the PostMessage in win32.
to order the main-thread to perform the job on befalf of the worker-
thread.
please could you tell me how to do that?
thanks.