M
Mr. Bean
I building a small win application that has one form and several
classes. I want to allow each class to give a log about its activities,
so I created a static method at the form and called it from each class.
ex Form1.echo("the message");
//in the form
staic void echo(string x){
log_tb.Text += x;
// the static mehtod isn't locating the texxtbox log_tb..
}
the static function echo is suposed to append the text to a textbox,
but I'm not able to accoplish that. I also tried calling the
Form1.ChildCollection("log_tb").text but it didnt work Any Ideas?
classes. I want to allow each class to give a log about its activities,
so I created a static method at the form and called it from each class.
ex Form1.echo("the message");
//in the form
staic void echo(string x){
log_tb.Text += x;
// the static mehtod isn't locating the texxtbox log_tb..
}
the static function echo is suposed to append the text to a textbox,
but I'm not able to accoplish that. I also tried calling the
Form1.ChildCollection("log_tb").text but it didnt work Any Ideas?