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

VS 2008 [RESOLVED] Dynamic AddressOf

$
0
0
This is a bit difficult to describe (or I'm just terrible with my English), so I'll try to clarify any questions you all may have.
I have a business program that I'm working on, and as stupid as this sounds, I want to pass in a method that will be bound using AddHandler and AddressOf.

Example:

Code:

Private Sub SetHandler(iHandler As <SOMETHING>)
    AddHandler dgv_results.CellDoubleClick, AddressOf iHandler
End Sub

How would I achieve that, and what would be that <SOMETHING>?

Viewing all articles
Browse latest Browse all 27078

Trending Articles



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