473,508 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms and threads...

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
Dec 10 '05 #1
1 914
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).

"Simon Verona" wrote:
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

Dec 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1880
by: Mahesh Devjibhai Dhola [MVP] | last post by:
We are building Chat like application using Forms and as a result our programming is becoming complicated to display messages received on different threads in the chat window (due to STA...
4
4754
by: Joey Powell | last post by:
Hello all. For a long time now I have been struggling with a .net Windows Forms problem. In several of my applications, I use the "Process" class from System.Diagnostics to accomplish various task...
4
9891
by: Scott Johnson | last post by:
Hi! Is there a way to "preload" a form using a thread or something else so that my user doesn't have to wait 5 seconds (initializing time) between forms? Some of these forms have tab strips with...
5
1429
by: Simon Verona | last post by:
I have an application with a menu system which creates a new thread when a menu item is selected - some of these other threads may open a form for user interaction. Before the menu system is...
2
6511
by: Chris Dunaway | last post by:
I am attempting to use the AppDomain.UnhandledException event in a Windows Forms app and also in a Windows Service. But the event doesn't seem to be called. In a Windows Forms app, the event IS...
10
10017
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
1
920
by: Mike | last post by:
I have the following scenario that I'm not quite sure how to implement. I have a form called frmMain that it's a MDI container, and a form called frmChild, which some instances of it will...
14
3334
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
2
1408
by: anon | last post by:
- realtime application has multiple forms. each form is created on a new (gui) thread. this was supposedly for efficiency reasons, i am told. this was done before i took this project. it was done...
6
1057
by: John | last post by:
Hi I am trying to create (not open) several forms in the background threads using the code given below at the end. 1. Am I doing it correctly? 2. How can I get handle sot these forms in the...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.