I have a seried of textboxes which I would like the user to click on the select a date from a date/time picker then return the date to the textbox which was last clicked.
I can set a variable to the textbox which was clicked in the Enter event thus:-
Private Sub TxHaulier_Leave(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles TxHaulier1.Leave, TxHaulier3.Leave, TxHaulier2.Leave
Dim TB As TextBox = sender
ControlClicked = tb.name
What I want is something in the datetimepicker click or valuechanged event to return the value to ColtrolClicked