Bob Cat

Bob Cat

  • NA
  • 7
  • 0

Multiple forms subscribing to the same event and data?

Sep 5 2007 4:40 PM

My application has one MDIparent (say MDIparent.cs) and a tool form (say mainform.cs).

A text box in the mainform.cs takes some strings as input and displays the resulting data on the form. There are thousands of strings that can be entered in the input field that give different data for that particular string.

After entering my first string in the mainform, i open a "new" form in the MDIParent (File-->New) to give me another window of form so that i can calculate data for a different string.

However, when i do that, the application seems to be over-writing the data of the new window onto the first form and vice versa.

My goal is to keep keep the data different for different strings, separate.

Is it a problem with MDIParent or form?

Can anyone give me an idea how can i make sure that the form only subscribes to the proper event on itself alone?

Thanks