Hello,
I have a problem of accessing a Form element from a different class with the same name space
On the different class I’m trying to set a label of the form , by creating a instance of the form ,but the label is not being set
See here the general structure of the program
Class Form
{
Elements(label,timer etc…)
Public void set_label()
{
Label.text=”hello”
}
}
Class my class
{
Form F1=new Form()
F1.set_label()
}
As explained the label doesn’t change
Any idea what I’m doing wrong?
Thanks ahead