Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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!";
 
PREVIOUS NEXT
Tagged: #access #label #class
ADD COMMENT
Topic
Name
1+5 =