G
Guest
I have 2 classes
form.cs and cls1.cs
in form.cs
using cls1_ns;
namespace form_ns
{
.....public class formCls.....
public System.Windows.Forms.ListBox LstBox;
....}
in cls1.cs
using form_ns;
namespace cls1_ns
{
class ...etc...
static formCls cForm = new formCls();
.....
public void funcA()
{
....
cForm.LstBox.Add (....)
}
}
}
this doesn't work, would you please tell how to update the value in window
form from another class?
thanks a lot!!!
form.cs and cls1.cs
in form.cs
using cls1_ns;
namespace form_ns
{
.....public class formCls.....
public System.Windows.Forms.ListBox LstBox;
....}
in cls1.cs
using form_ns;
namespace cls1_ns
{
class ...etc...
static formCls cForm = new formCls();
.....
public void funcA()
{
....
cForm.LstBox.Add (....)
}
}
}
this doesn't work, would you please tell how to update the value in window
form from another class?
thanks a lot!!!