How to mass check data with the UserForm?

WinForms . there are 20 textboxes and 20 Label next to it(they say what do you mean tb).
All the values the user enters. All values should be double.
I usually write like this (possibly a Fig) code:
spoiler
private void TbLnsDist_TextChanged(object sender, EventArgs e)
{
 string val = tbLnsDist.Text;
 val = val.Replace(",", decimal_sep);
 val = val.Replace(".", decimal_sep);

 double number;
 bool res = double.TryParse(val, out number);
 if (res == false)
{
 lbLnsDist.Text = "Enter a number!";
 lbLnsDist.ForeColor = Color.Red;
 btnLnsCreate.Enabled = false;
}
else
{
 lbLnsDist.Text = "Distance";
 lbLnsDist.ForeColor = Color.Black;
 btnLnsCreate.Enabled = true;
}
 }

However, controls became a lot.
In such cases it is correct to do the check? a separate class with methods? or is it in each control to write its review?
March 23rd 20 at 18:40
2 answers
March 23rd 20 at 18:42
Solution
Write your control that will accept only double and not have any checks
https://docs.microsoft.com/en-us/previous-versions...
how about here? - candida_Bog commented on March 23rd 20 at 18:45
@candida_Bog, this is just a standard example, alter and use - sarai_Reilly93 commented on March 23rd 20 at 18:48
March 23rd 20 at 18:44
Solution
1 - view event validation https://docs.microsoft.com/ru-ru/dotnet/api/system...
2 - one event handler (method) can hang on a lot of controls. is this normal

Find more questions by tags Windows FormsC#