Need help passing value using AddHandler
Posted on 2007-07-19
Using VB.net 2005 SP1 Compact Framework 2.0
I have a sub that is called as follows:
AddHandler tabAttBut.Click, AddressOf AutoButton. This is located on every tab page of the tab 'tabProj' located on Form7
From that I have the following code:
Public Sub AutoButton(ByVal sender As Object, ByVal e As EventArgs)
Dim strBut As String
Dim ctrlName As String
ctrlName = DirectCast(sender, Control).Name()
strBut = ctrlName.Substring(4, ctrlName.Length - 4)
I need to also have the value of tabPage.text value passed to this module as well.
How do I do that?