G
Guest
Hey Folks
i wanted to ask about the datetimepicker.
I want a messagebox to appear as soon as the user clicks on the datetimepicker.
I have tried the valuechanged event but i want the message to appear way before this stage. I want to display it as soon as the calender is displayed or as soon as the mouse is pressed on the control.
I tried the click event but this didnt work. this is what i tried:
Private Sub dtpRoomDate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtpRoomDate.Click
If LViewMealBookings.Items.Count > 0 Then
MsgBox("Changing the room date will cause all your meal bookings to be lost. Do you wish to continue?", vbYesNo)
If vbYes Then
dsFullBooking.Tables("dtMealBooking").Clear()
LViewMealBookings.Items.Clear()
End If
End If
End Sub
Can anyone help me?
i wanted to ask about the datetimepicker.
I want a messagebox to appear as soon as the user clicks on the datetimepicker.
I have tried the valuechanged event but i want the message to appear way before this stage. I want to display it as soon as the calender is displayed or as soon as the mouse is pressed on the control.
I tried the click event but this didnt work. this is what i tried:
Private Sub dtpRoomDate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtpRoomDate.Click
If LViewMealBookings.Items.Count > 0 Then
MsgBox("Changing the room date will cause all your meal bookings to be lost. Do you wish to continue?", vbYesNo)
If vbYes Then
dsFullBooking.Tables("dtMealBooking").Clear()
LViewMealBookings.Items.Clear()
End If
End If
End Sub
Can anyone help me?