In my project I have a set of controls created automatically
VB Code:
Dim i As Integer Dim tb As New Textbox For i = 1 to flatPane.Controls.Count tb.text = "Hello world" frmDocument.Controls.Add(tb) Next
Now I want to make this controls react on Click event but I don't know how to do it. The control has not been created in design mode so I don't know how to create a Sub for this event. How I should write the code?
Can anyone help me?
Thanks a lot.




Reply With Quote