Basic Form questions
When debugging, can I write messages to the console window?
Console.WriteLine("xx"); does not display anything
In, my form.cs file, I would like to access some of the forms objects like a textbox in a public class. However, I can only access the objects with form events such as button click.
public static void DrawYLabels()
{
YLabel1.Text = "Y1";
Form1.ActiveForm.YLabel1.Text = "Y1"; // both these don't work
}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 reputationPosted Aug 28, 2004, 9:19 PM EDT