hey everyone.
i am new to C# and i'm wondering if you can call a function or a method i guess is what its called but can i call one on load that has a "trigger" that runs a for loop to clear an array? heres what i have for my form load:
i am using the .NET framework 4.0 and Visual Studio 2010Code:public void calculate()
{
if (gbl_trigger[0] == 0)
{
for (int i = 0; i < 10; i++)
{
operand[i] = 0;
button15.Text = i.ToString();
gbl_trigger[0] = 1;
}
}
}
private void Calculator_Load(object sender, EventArgs e)
{
gbl_trigger[0] = 0;
calculate();
}