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
Post a Comment