c# - How to make so that you can only enter a date? -


so need in "year", can enter date only. pop warning something. here's code, if user enters empty value, need add?

if (textbox1.text == "" || textbox2.text == "" || textbox3.text == "" || textbox4.text == "" || textbox5.text == "" || textbox6.text == "")             {                 messagebox.show("Не заполнены все поля!");                 return;             } 

put textbox datetimepicker, further: string date=datetimepicker1.value.tostring ("dd.mm.yy")


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -