Forms and threads...

  • Thread starter Thread starter Simon Verona
  • Start date Start date
S

Simon Verona

I have an application, that starts with a "menu" form.

Each menu item points to a method in differing class libraries... which I
start up in a seperate thread (so that the menu is still active). The
classes will normally display a form. This allows several menu items of
the whole application to run at once (in seperate threads).

This all works well...

but. I want to change the application so that once you select a menu, the
"menu" form hides itself and then only reappears if you click a hot spot on
the status bar on the form...

I can create the hot-spot to click, no problem.. but how do I message back
to the menu form to redisplay itself? It would be a little impractical
for me to go through all my classes and create some sort of event mechanism
at each point - I'm hoping that i can just add something into my base form
(that all my forms inherit from) to do the messaging

Anybody offer any guides?

Thanks
Simon
 
I am not sure what form has your Hot Spot on it. But that form should be
your main one and it should do all of the thread calling and menu form
showing/hiding. Make your Menu form just a simple UI that returns the menu
selected. (If you can).
 

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