Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# show text in another form

You could modify the constructor of Form2 like this:

public Form2(string labelText)
{
    InitializeComponent();
    this.labelX1.Text = labelText;
}
then create Form2 passing in the text:

Form2 frm2 = new Form2(this.button1.text);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #text #form
ADD COMMENT
Topic
Name
6+3 =