Hello
I have an issue with dynamic, runtime controls.
I create a group of controls per record to display on a form.
I add the record ID as a tag on each of the controls to identify which record they belong to.
While rCONT.Read
Dim txtphome As New TextBox
txtphome.Name = "phone" + rCONT.Item("pcontID").ToString
txtphome.Text = rCONT.Item("pcontPhHome").ToString
txtphome.Tag = rCONT.Item("pcontID").ToString
tcPatientDetails.TabPages(2).Controls.Add(txtphome)
AddHandler txtphome.LostFocus, AddressOf SaveContactChange
AddHandler txtphome.GotFocus, AddressOf SetContactNumber
End While
In SetContactNumber I want to save the tag value How can I identify which control triggered it