|
-
Nov 7th, 2005, 12:31 PM
#1
Thread Starter
Fanatic Member
Add handler to Arraylist object [RESOLVED]
I need to add an handler to my object...!!!
here, can't get the .Click to work... without or with the option strict off/on... 
VB Code:
Private o As ArrayList = New ArrayList
Form_Load
o.Add(New RadioButton)
End Sub
CmdAdd_Click
AddHandler o(o.Count - 1).Click, AddressOf oClick
End Sub
oClick
Msgbox "YAY!"
End Sub
HELP!
Last edited by Ruku; Nov 7th, 2005 at 09:06 PM.
-
Nov 7th, 2005, 01:13 PM
#2
Thread Starter
Fanatic Member
Re: Add handler to Arraylist object
Fixed it...
VB Code:
Private o As ArrayList = New ArrayList
Form_Load
o.Add(New RadioButton)
End Sub
CmdAdd_Click
Dim b as RadioButton
b = o(o.Count-1)
AddHandler b.Click, AddressOf oClick
End Sub
oClick
Msgbox "YAY!"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|