Hi all,
Here is more information you may need.
Please drop a DateTimePicker control on a Form (VB project), show a
messagebox in the ValueChanged event, as below snippet. Now run the form
and drop down the calendar, select a date to let the event fire, after the
message box shown, we can still activate the form background. This happens
whatever MsgBoxStyle is specified even as MsgBoxStyle.SystemModal.
Private Sub DateTimePicker1_ValueChanged(ByVal sender As Object, ByVal e
As System.EventArgs) Handles DateTimePicker1.ValueChanged
MsgBox("DateTimePicker1_ValueChanged", MsgBoxStyle.ApplicationModal)
End Sub
The same scenario could be reproduced in a C# project, but I could pass it
if by specifying the Form as the owner of the message box, as below code.
private void dateTimePicker1_ValueChanged(object sender, System.EventArgs
e)
{
MessageBox.Show(this, "dateTimePicker1_ValueChanged");
}
Is something wrong in the message box method in VB?
-jason