F
Francesco Ranieri
Hi to all,
I'm programming with CF 1.0 and VB.NET 2003.
I've created an array of button "btnPRVPagesButtons" on my form.
All buttons click are handled by one only function
"btnPRVPagesButtons_Click"
I'm trying to capture (identify) the button clicked reading its ".Text"
property.
Private btnPRVPagesButtons(MAX_PAGES, MAX_BUTTONS_PER_PAGE) As ImageButton
...........................
private sub CreateButtons(ByVal intPageIndex As Integer, ByVal
intButtonIndex As Integer)
btnPRVPagesButtons(intPageIndex, intButtonIndex) = New ImageButton
btnPRVPagesButtons(intPageIndex, intButtonIndex).Text = "P" &
intPageIndex.ToString & "I" & intButtonIndex.ToString
AddHandler btnPRVPagesButtons(intPageIndex, intButtonIndex).Click,
AddressOf btnPRVPagesButtons_Click
Me.Controls.Add(btnPRVPagesButtons(intPageIndex, intButtonIndex))
end sub
Private Sub btnPRVPagesButtons_Click(ByVal objPRMSender As Object, ByVal
earPRMEvent As EventArgs)
'?????????????????????????????????
End Sub
I wish to find the instruction that allows me to read ".Text" property of
the button clicked into click handler "btnPRVPagesButtons_Click", there
where I've put '???????.
Any suggestion?
Thanks in advance
Francesco
I'm programming with CF 1.0 and VB.NET 2003.
I've created an array of button "btnPRVPagesButtons" on my form.
All buttons click are handled by one only function
"btnPRVPagesButtons_Click"
I'm trying to capture (identify) the button clicked reading its ".Text"
property.
Private btnPRVPagesButtons(MAX_PAGES, MAX_BUTTONS_PER_PAGE) As ImageButton
...........................
private sub CreateButtons(ByVal intPageIndex As Integer, ByVal
intButtonIndex As Integer)
btnPRVPagesButtons(intPageIndex, intButtonIndex) = New ImageButton
btnPRVPagesButtons(intPageIndex, intButtonIndex).Text = "P" &
intPageIndex.ToString & "I" & intButtonIndex.ToString
AddHandler btnPRVPagesButtons(intPageIndex, intButtonIndex).Click,
AddressOf btnPRVPagesButtons_Click
Me.Controls.Add(btnPRVPagesButtons(intPageIndex, intButtonIndex))
end sub
Private Sub btnPRVPagesButtons_Click(ByVal objPRMSender As Object, ByVal
earPRMEvent As EventArgs)
'?????????????????????????????????
End Sub
I wish to find the instruction that allows me to read ".Text" property of
the button clicked into click handler "btnPRVPagesButtons_Click", there
where I've put '???????.
Any suggestion?
Thanks in advance
Francesco