lazypeople
asked on
Creating dynamic handlers
Hey there. I'm attempting to call a user defined function (callbyname) on a dynamically created button using add handler.
unfortunatly i keep getting this error:
'AddressOf' operand must be the name of a method (without parentheses)
Any help would be great :)
Many Thanks
Ben
AddHandler button.Click, AddressOf CallByName(form, "function_name", CallType.Method)
unfortunatly i keep getting this error:
'AddressOf' operand must be the name of a method (without parentheses)
Any help would be great :)
Many Thanks
Ben
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not a problem, glad I was able to help. ;=)
ASKER