What I'm trying to do is pass strings from one form to another.
I've a form, that has like "settings" and then in a button "extra settings", the button will take you to another little form where it has some more options to choose.
So what I'm trying to do is when you click "Set" in the second form, it will close and set the extra options in the first form.
I know that in VB.NET is something like:
Form1.Label1.Text = Me.TextBox1.Text
But it can't be that simple in C#, and I've tried:
frmMain frm = new frmMain(); frm.personName = this.txtName.Text; //personName is a public string
But for this to work I'd need to first close the first form and reopen it, but I don't/can't want to/do that since I I want the first form to be always there, well, it is the main one.
Can anyone help me?

New Topic/Question
Reply



MultiQuote




|