Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27368

VS 2010 [RESOLVED] AddHandler - With Params

$
0
0
As I understand

Code:

AddHandler xxx, AddressOf RoutineToRun
Will execute the 'RoutineToRun' when the handler is triggered, What I would like to do is pass a param with the RoutinrToRun, so effectively in theory

Code:

AddHandler  XXX, AddressOf RoutineToRun("Param1")
AddHandler  YYY, AddressOf RoutineToRun("Param2")

This of course does not work, however it demonstartes what I am trying to achieve.

In this way, I can have one RoutineToRun (as they are all very similar) with the bits that are different parameterised.

Viewing all articles
Browse latest Browse all 27368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>