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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

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