I have a program in which an MDI parent spawns MDI child forms, as well as a dialogue in which the person types in their personal information. That information, in conjunction with data from the child forms, is used to transmit a request over the Web (see my other threads).
Currently I have the main form (the MDI parent) with private variables that match the personal info form. I've tried using "firstName = firstName.Text;" with no luck--I didn't expect it to work, frankly, since this would be looking on the personal info form. I've tried using "this.Parent.firstName" but that's not legal. I've also tried switching to public variables.
My suspicion is that I have some sort of design flaw, but I can't figure out how best to do this. It's making me feel more and more stupid as I go along. Perhaps I've been staring at this project far too long...
Currently I have the main form (the MDI parent) with private variables that match the personal info form. I've tried using "firstName = firstName.Text;" with no luck--I didn't expect it to work, frankly, since this would be looking on the personal info form. I've tried using "this.Parent.firstName" but that's not legal. I've also tried switching to public variables.
My suspicion is that I have some sort of design flaw, but I can't figure out how best to do this. It's making me feel more and more stupid as I go along. Perhaps I've been staring at this project far too long...