try { int entier = int.Parse(textbox.Text); } catch(FormatException ex) // format invalide { MessageBox.Show("G dit de saisir un int !!!"); } catch(OverflowException ex) // overflow { MessageBox("Trop grand/petit"); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question