first of all I want to sorry for my English... I have an if:
if (imię.Text.Length > 2 && char.IsUpper(imię.Text,0) && char.IsLower(imię.Text,1)==true)
{
PanelImie.BackgroundImage = Properties.Resources.Check_icon;
imietest = true;
}
else
{
PanelImie.BackgroundImage = Properties.Resources.Sign_Error_icon;
imietest = false;
}
blokowanieOK();
And a form like on the picture:
In field "imię"(name) and "nazwisko"(surname) I set the first letter must be upper that's ok but I want the rest off letters be lower and checkicon will be true in this situation. At the moment I can write Uppercase ewerywhere and my program show me that's ok... How to change this if to First letter must be upper and rest of letters must be lower and then checkicon will be ok?