Home > Net >  Consult a Winform form
Consult a Winform form

Time:05-22

I expanded the TextBox, increases the data validation,
If validation fails with MessageBox reminds,
Put a lot of interface TextBox, hope data validation fails to prevent closed form,

Now you can think of is to add a Textbox properties, such as TypeError, in the form of traverse all Form_Closing event attributes, if there is a TypeError is true, prevents closed form,
Excuse me, is there any other better way?
  •  Tags:  
  • C#
  • Related