Date time picker validations

后端 未结 5 1170
死守一世寂寞
死守一世寂寞 2020-12-29 16:23

I am sorry for posting this question as it may be find silly to all, but I am not getting the exact solution.

The question is: I have a Date time picker in my proje

5条回答
  •  不思量自难忘°
    2020-12-29 16:54

    Please correct the code and see if it works

                   if (dateInsert.Value.ToString() == "")
                  {
                    MessageBox.Show("Please select date!");
                    dateInsert.Focus();
                    return;
                   }
    

提交回复
热议问题