Address App Hosting Custom Control

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

Hello All,

Long time no see. I hope this finds you all well and having had a good
holiday season.

I am trying to figure out a way to control within a custom control the
application that is hosting it.

Specifically in this case I am trying to shut down the host application
from code within the custom control but there are other situations where
it would be good to have this ability.

Anyone who wants to help I would be greatful.
 
Here is technique I have used:

How about adding an event in the UserControl that raises a 'ShutDown' event.

Then in the host application you could add a handler that calls
Application.Exit() or whatever code you have in the application to shut it
down.


--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
 

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

Back
Top