Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# int to string date conversion 
Csharp :: int to char c# 
Csharp :: pick random point inside box collider unity 
Csharp :: game maker transparent 
Csharp :: invalidoperationexception c# ui thread 
Csharp :: sustituir un caracter de un string c# 
Csharp :: Create a button in unity to show ad 
Csharp :: dictionaries in unity 
Csharp :: unity create a textbox in inspector 
Csharp :: how to iterate string in c# 
Csharp :: Reading emails from Gmail in C# 
Csharp :: wpf binding ancestor codebehind 
Csharp :: recorrer list c# 
Csharp :: how to iterate a generic list in c# 
Csharp :: rows and columns arrays 
Csharp :: c# get out of for loop 
Csharp :: modal barrier in flutter 
Csharp :: usermanager find based on role 
Csharp :: oncollisionenter2d 
Csharp :: how to get properties from json in c# 
Csharp :: c# return two values 
Csharp :: hashtable in c# 
Csharp :: c# return multiple values 
Csharp :: c# distinct comparer multiple properties 
Csharp :: c# sort llist 
Csharp :: action c# 
Csharp :: calculate textbox value c# 
Csharp :: scaffolding in vs22 asp.net 6 
Csharp :: Uninstall-SPSolution: This solution contains resources scoped for a Web application and must be retracted from one or more Web applications. 
Csharp :: how to subtract two rows asp ne gridview in asp.net 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =