It's my first time using winforms. I'm having some issues.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void TextBox1_TextChanged(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
textBox1.Text = "FORM1";
textBox1.AppendText("SOME TEXT");
}
}
I've tried this. My textbox is set to fill so it fills up the whole form. I set the multi-line propery to true and dock property to fill.
From what I can try as a first time WinForms user, the Form1_Load should run as soon as the form is created. I've tried some various ways to print text, nothing works. I noticed visual studios says "0 references" next to my function. I'm not sure what this means, maybe part of my issue? Please help.
text changed
event ?Load
event. CopyForm1_Load1
and paste at the box next to event nameForm1.Load
event. In theForm1()
constructor, try adding the line:this.Load += Form1_Load;