Hi all,
I posted this yesterday but didnt explain it too well so thought I would do
it again.
I have a label on a form that I want to be able to change the text while I'm
in a seperate class file. For example -
FORM1 IS :
nsInterface
{
clsInterface
{
private System.Windows.Forms.Label lblStatus;
public void setStatus(text)
{
lblStatus.Text = text;
}
}
}
THE SEPERATE CLASS FILE IS :
nsConvert
{
clsConvert
{
public void convertNow()
{
nsInterface.clsInterface objInterface = new
nsInterface.clsInterface();
objInterface.setStatus("hello world");
}
}
}
I intend the Form1 (which is called frmInterface) lblStatus control to show
the text which is passed to it from the convertNow method which is in a
seperate class file. So to repeat all I want to do is have the From1
(frmInterface) lblStatus control show the text which is passed to it.
Hope this makes sense. Thanks in advance.
--
Message posted via http://www.dotnetmonster.com