How to check whether the item in the combo box is selected or not in C#?

前端 未结 1 1326
情话喂你
情话喂你 2021-02-15 00:52

I have a combo box in which I have to display the dates from a database. The user has to select a date from the combo box to proceed further, but I don\'t know how to make the u

相关标签:
1条回答
  • 2021-02-15 01:26
    if (string.IsNullOrEmpty(ComboBox.SelectedText)) 
    {
     MessageBox.Show("Select a date");
    }
    
    0 讨论(0)
提交回复
热议问题