public Form1() { InitializeComponent(); SPenvoie.Open(); SPreception.Open(); CbxTrameOkay.Visible = false; }
private void BtnTest_Click(object sender, EventArgs e) { SPenvoie.Write(tbxTest2.Text); /*tbxTest2.Text = ("non"); * * string txt = tbxTest2.Text; * tbxTest2.Text = txt.Substring(2, 4); * bool Valid = Traitement(tbxTest2.Text); * if (Valid == true) * { * CbxTrameOkay.Checked = true; * } * else * { * CbxTrameOkay.Checked = false; * }*/ }