USER CONTROL shutdown...

M

Me

Hello,

The user control will be used in multiple parent forms
and I would like a way to be notified of when a user
controls is "going away" (independent of the parent)

I would also like to access controls ( edit boxes etc )
on the user control at the notification moment, AND also
be able to "contact" the parent form to acess the
parent's forms controls ( edit boxes etc ) at the same
time.

Thanks
Mike
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hello,

You can try overriding the control's Dispose method, but I am not sure
whether parent form's/child controls are available at this point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top