Form Manipulation in Threading

maliasghar

New member
Joined
Jul 8, 2005
Messages
1
Programming Experience
1-3
Hello All,
I have this question.

I have these two forms, parentForm and childForm. Within the parentForm, i declare an object of childForm and instantiate it as well, but do not show it as yet:

dim temp as childForm
temp = new childForm

Within the parentForm, I create a new thread of one of the functions. From within this function, I call to show the childForm:

private sub functionthread()
...
childForm.show()
...
end sub

But the problem, is that the form doesn't show up. The functionthread ends soon. I think this problem has something to do with threading. because as soon as the thread ends, the form disappears too, although it was not being instantiated from within the thread. it was only being showed. Can someone help me on this?

Thanks
 
I am not sure what seems to be the prob, because when I try to simulate your code... it works fine. May be you can put them in details
 
Please note that creating a procedure containing the name thread does not constitute a thread.
Use the System.Threading.Thread class to create a thread.
 
Back
Top