Hi,
Add the extra controls to the event procedures handles.
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged
End Sub
or use addhandler
For x As Integer = 0 To 4
Dim txt As New TextBox
txt.Location = New Point(20, 20 * (x + 1))
Me.Controls.Add(txt)
AddHandler txt.TextChanged, AddressOf TextBox1_TextChanged
Next
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs)
End Sub
Ken
---------------------
"Jerry" <je***********@gmx.net> wrote in message
news:dg*************@news.t-online.com...
Hello again,
with the controlarrays is it possible to let's say make two textboxes and
then with one lost_focus event handle both boxes?
I'd like to input two values, one in each box. When the user leaves which
ever box the calculated value should be updated.
For now I am doing this with two events, one for each box. would reduce
the size if I could do it it one.
Anybody have a sample code?
Thanks,
Jerry