Bob Boursaw

Bob Boursaw

  • NA
  • 10
  • 0

Systray App - Need some help here

Jul 1 2007 2:57 AM
Ok,

I have a small systray application which has a context menu associated with it.  One of the options on the context menu bring up a dialogue box and prompts the user for information.  My goal is simply this.

1.  Take the information that the user enters on the form
2.  Pass this information from the current form to some main form variables via public SET properties in the main form
3.  Close the dialogue once the information has been passed.

My issue...

The only way I know how to access the public properties to set the variables in the main form is to instantiate a new instance of my main form.  HOWEVER, when I do this, I end up with 2 running instances of my system tray application.

Is there a way to grab the 'current' instance of a form or how should I be doing this?

I know this is probably a very basic task but I can't seem to find the answer.

Thanks all!!!

Bob

Answers (7)