How to handle the events of an array of controls dynamically created
with the statement
Set MyTextBox (Index) = Controls.Add("vb.textbox", "Test" & Index)
For 1 control it works:
Declaration:
Private WithEvents MyTextBox As TextBox
Event Handler:
Private Sub MyTextBox _Click()
MsgBox " MyTextBox "
End Sub
For an array of controls I expected this code would work
Declaration:
Private WithEvents MyTextBox(10) As TextBox
Event Handler:
Private Sub MyTextBox _Click( Index as Integer)
MsgBox " MyTextBox " & index
End Sub
Unfortunately it's impossible to write this declaration. How can I
process?
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/