Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Click event for a set of code created controls

Threaded View

  1. #1

    Thread Starter
    Junior Member JaGrom's Avatar
    Join Date
    Nov 2006
    Location
    Rome (Italy)
    Posts
    17

    Resolved [RESOLVED] [2005] Click event for a set of code created controls

    In my project I have a set of controls created automatically

    VB Code:
    1. Dim i As Integer
    2. Dim tb As New Textbox
    3. For i = 1 to flatPane.Controls.Count
    4.     tb.text = "Hello world"
    5.     frmDocument.Controls.Add(tb)
    6. 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.
    Last edited by JaGrom; Nov 8th, 2006 at 06:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width