DateTimePicker events

R

Rob Oldfield

Hi,

I'm looking for which event to use with regard to a DateTimePicker control.
I want my event to fire when the actual contents of the control is
changed... but I'm finding that all events are firing when I, for example,
scroll from month to month. Presumably I'm missing something very
straightforward but if someone has an idea then it would be much
appreciated.

Thanks
 
R

Ritesh Jain via DotNetMonster.com

Hi,
Did u Tried with CloseUp Event.............

Private Sub DateTimePicker1_CloseUp(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.CloseUp
MessageBox.Show(DateTimePicker1.Value.ToString)
End Sub

I hope this will help u................

Regards,
Ritesh
 
R

Rob Oldfield

I hadn't...and it looks to be half way there.... but it doesn't fire when a
user changes the text manually.


Ritesh Jain via DotNetMonster.com said:
Hi,
Did u Tried with CloseUp Event.............

Private Sub DateTimePicker1_CloseUp(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DateTimePicker1.CloseUp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top