I have the following problem: I have a function that is called when the button triggers the textchanged event only when I start the program for the first time it calls the textchanged function in the load event. I want when the program starts the textchanged is not fired though the label text. Form_load code:
private void Form1_Load(object sender, EventArgs e)
{
lbl_off.Text = "- Modo Offline, conecte para iniciar a contagem.";
}
Event code text_changed:
if (lb_TA.Text == "1")
{
turno_para_oee = "3";
Tubeteira_Oee();
}
if (lb_TA.Text == "2")
{
turno_para_oee = "1";
Tubeteira_Oee();
}
if (lb_TA.Text == "3")
{
turno_para_oee = "2";
Tubeteira_Oee();
}
}