Ok, I’m new to this oo stuff so it sort of confuses the hell out of me at times.. Anyway, I have my main form which contains 3 panels and the center panel gets populated with 6 user controls. So I’m told data flow can only go from the main form to the control and not visa versa. I know there’s a way for it to be done with delegates but the help I have had and the guides I have used, I just don’t understand. it seems like i’m standing in front of my goal but im going to take a 10 mile round trip just because im told to. I don’t understand why I need to do this, or how to do it.
the problem is made worse because I now need multi threading. I need the main form to kick of a function in usercontrol2 (page2) in a new thread. problem being, I need the app/user control to wait for that thread to finish before continuing. and I need another user control displayed over the top of page 2 until it’s complete.
now the only way I can see this is working is if I can check the isalive property of the thread. but I don’t know how I would repeat this to allow it to continue when done and I don’t know enough about delegates to do it. all the delegate tutorials show it done on one page of code.. which doesn’t help me at all.
I know this is quite broad but any hints, tips, reasoning and or coding would be a great help.
Thanks,
Piercy
the problem is made worse because I now need multi threading. I need the main form to kick of a function in usercontrol2 (page2) in a new thread. problem being, I need the app/user control to wait for that thread to finish before continuing. and I need another user control displayed over the top of page 2 until it’s complete.
now the only way I can see this is working is if I can check the isalive property of the thread. but I don’t know how I would repeat this to allow it to continue when done and I don’t know enough about delegates to do it. all the delegate tutorials show it done on one page of code.. which doesn’t help me at all.
I know this is quite broad but any hints, tips, reasoning and or coding would be a great help.
Thanks,
Piercy
Comment