Usercontrol and winform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI,

How can a Usercontrol send information back to the parent that it completed
it task?
Best example is login. If I have a login control and once it is validated
and everything is good, how can the user control tell parent that, it
completed now parent can remove the control?

Thanks.
 
I found the answer. I had the main button declared but I wasn't referencing
correct control.
 
Nair said:
How can a Usercontrol send information back to the parent that it
completed
it task?

By raising an event. Take a look at the chapter about events and delegates
in the documentation.
 
Back
Top