So I made a program using labels and textboxes to prompt the user to enter in three integers. When I finished designing the GUI then I double-clicked the Calculate button and I looked at the code Visual Studio created and
I saw some things I have not seen before.
It looks like Visual Studio has made an event handler for everything, not just the Calculate button. It made an event handler for Form Load, for labelFirstInteger, labelSecondInteger, labelThirdInteger. I have not had the IDE do this before.
What should I do?
I saw some things I have not seen before.
It looks like Visual Studio has made an event handler for everything, not just the Calculate button. It made an event handler for Form Load, for labelFirstInteger, labelSecondInteger, labelThirdInteger. I have not had the IDE do this before.
C#:
public partial class FormMaximumAndMinimum : Form
{
public FormMaximumAndMinimum()
{
InitializeComponent();
}
private void FormMaximumAndMinimum_Load(object sender, EventArgs e)
{
}
private void labelThirdInteger_Click(object sender, EventArgs e)
{
}
private void labelFirstInteger_Click(object sender, EventArgs e)
{
}
private void labelSecondInteger_Click(object sender, EventArgs e)
{
}
private void buttonCalculate_Click(object sender, EventArgs e)
{
}
}
}
What should I do?