If the item not selected in combobox and the user click on the another tabpage,it should show "The option from dropdown should be selected" and focus the combo .I have did this in validating event
void cmbDistributionOption_Validating(object sender, CancelEventArgs e)it works fine till focusing the combo.If I again try to select the combo which is focused,the dropdown of the combo is flickering(dropdown shows and goes up)
{
ComboBox cmb = (ComboBox)sender;
if (cmb.SelectedIndex <= 0)
{
MessageBox.Show("The option from dropdown should be selected.", "Popup", MessageBoxButtons.OK);
e.Cancel = true;
}
}
I tried to select the item but its not possible.
Any solution for this weird behaviour?