the problem in create f_in_box form at multithreading
Posted: Mon Mar 30, 2009 7:07 am
hi,can anybody help me?
when i create a common form at work thread(not main thread),it works like this:
but,if the Form1 extend f_in_box__lib.f_in_box__form,it doesn‘t work.
why?
when i create a common form at work thread(not main thread),it works like this:
Code: Select all
Form1 form = new Form1();
ISynchronizeInvoke synchronizer;
synchronizer = form;
MethodInvoker invoker = new MethodInvoker(form.Show);
Global.mainForm.Invoke(invoker, null);
but,if the Form1 extend f_in_box__lib.f_in_box__form,it doesn‘t work.
why?