Ok, 2 things:
1) You can't just define a method and expect it to magically be associated with the event. You need to go into the forms designer, into the properties window and click the little lightening symbol. This opens up the events list for that form. Here, you should be able to see every event that you can make use of. Find the event you need and if you've already created the method, you should be able to select it from the drop down box. If not, just pressing enter in the blank space should create the event method for you. Once this is done, that method will be run when the event is called.
2) There's a better way to do this. I don't know how much you know about OO, but there's such a concept of a protection level. Basically, this controls what objects/properties/methods can be controlled from other classes. If an object, in your case a textbox, is defined as 'private', it can only be accessed from within that form's class. So you can only do stuff to it from code within the 'main' form class. You need to change it's protection level to allow it to be used from other classes. The opposite of private is 'public' which allows to be accessed from any other class, even if it's not in the same namespace. Other levels are 'protected' and 'internal', but you can read about them on google. The best thing to do for the minute would be to set the textbox to be 'public' ('internal' would work as well) and then it can be accessed from the responses form. As a rule, using global vars to pass data between objects isn't a good idea, as bad things can happen if more than one thing accesses it at once.
The problem you will run into is that while the control is now public, the responses form doesn't know which instance of the 'main' class to access. For all it knows, there could be 1000 'main' objects floating out there, so when you say "Go do something with this textbox", it doesn't know which you mean. A way round this is to send the main object off to the responses object when you create it. I imagine you have a constructor in the responses form:
All you need to do is to create a variable within the responses form of type 'main' and then throw the main value over to it when it's created:
Code:
private main mainfrm;
public responses(main thisinst) {
mainfrm = thisinst;
}
Then, when you need to update the textbox on the mainform from the responses form, just use the 'mainfrm' object, as that points back to your original object.
Code:
mainfrm.myTextBox.Text = "Hi there";
let me know if you have any issues.
