Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

access label from another class c#

//Form1
public static Form1 form = null;

        public Form1()
        {
            InitializeComponent();          
            form = this;
        }

// Your Class

Form1.form.label1.Text = "Hello, World!";
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity collapse hierarchy script 
Csharp :: ado net execute sql query 
Csharp :: oracle c# parameters wont work 
Csharp :: sto playing audiosource 
Csharp :: convert list to datatable c# 
Csharp :: how to call an If statement only once in C# 
Csharp :: c# tell if a class is a child or the class itself 
Csharp :: #grid 
Csharp :: how to make a system to check if i see certain object in unity 
Csharp :: c# convert string to array 
Csharp :: C# checking if a value is a int 
Csharp :: w3develops 
Csharp :: c# system cryptography hash string 
Csharp :: net user add ne user windows 10 
Csharp :: add header in action asp.net mvc 
Csharp :: run a command line from vb.net app 
Csharp :: unity GUI TextField enter 
Csharp :: wpf databinding 
Csharp :: c# convert bool to string 
Csharp :: ef core add OnModelCreating foreign key 
Csharp :: serialize object to json 
Csharp :: how to add arrays in c# 
Csharp :: *ngif vs ngif 
Csharp :: or operator in c# 
Csharp :: c# sequential struct with fixed array size 
Csharp :: can object change color when collided with particles unity 
Csharp :: create anchor tag dynamically c# 
Csharp :: C# Datagridview Column Header Double Click 
Csharp :: c# windows forms rtc 
Csharp :: turnary operator c# 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =