J
Jan Roelof de Pijper
I am fairly new to C# and I want to do the following: I have a main
form and have added a second form, frmScreen, to the project, which
contains a button and a TextBox control. In my main form, I create an
instance of this second form and show it, like so:
Form frmMyScreen = new frmScreen( );
frmMyScreen.Show( );
My question is, how do I communicate between my main form and this
second form? How can I look at the Text property of the TextBox on the
second form, or how do I detect whether the button on the second form
is pressed? Or is this impossible and do I need to work with
user-defined messages or something like that?
Any answers will be much appreciated!
Jan Roelof
form and have added a second form, frmScreen, to the project, which
contains a button and a TextBox control. In my main form, I create an
instance of this second form and show it, like so:
Form frmMyScreen = new frmScreen( );
frmMyScreen.Show( );
My question is, how do I communicate between my main form and this
second form? How can I look at the Text property of the TextBox on the
second form, or how do I detect whether the button on the second form
is pressed? Or is this impossible and do I need to work with
user-defined messages or something like that?
Any answers will be much appreciated!
Jan Roelof