VB.NET:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Select Case MessageBox.Show("Please select an Item", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
Case DialogResult.OK
CheckBox1.Checked = False
End Select
End Sub
When user clicks the CheckBox1, the message box should pop up, but it should also disappear (the checkbox also unchecked) when user clicks OK, once. Now I am facing this issue whereby, user will have to click 2 times in order for the message box to disappear. I really do not understand. First click, it(messagebox) blinks -- together with the checkbox unchecked. But it will not close. Second click, it will disappear. Can we make it so we only need to click once and it achieves the result which it closes the message box and unchecks the checkbox?
Any idea is greatly appreciated. Thanks