Hi,
I have panels in scroll view pnlUsers. Defined in global.
When user clicks panel it fires pnlUsers_Click event.
I have used it dozens of times but this time sender object is not having Tag value i assigned to it while adding panels to scroll view panel.
Any reasons.
Adding panel
Firing event
Pls give some clue.
Thanks
Juzer
I have panels in scroll view pnlUsers. Defined in global.
When user clicks panel it fires pnlUsers_Click event.
I have used it dozens of times but this time sender object is not having Tag value i assigned to it while adding panels to scroll view panel.
Any reasons.
Adding panel
B4X:
pnl.Initialize("pnl")
pnl.LoadLayout("Panel_Users")
lblMemberName.Text=m.Get("MemberName")
lblMemberID.Tag=m.Get("MemberID")
pnl.Tag=m.Get("MemberID")
If n=0 Then
svUsers.Panel.AddView(pnl,0,0,100%x,9%y)
svUsers.PANEL.Height=pnl.Height
Else
svUsers.Panel.AddView(pnl,0,svUsers.Panel.Height+1%y,100%x,9%y)
svUsers.PANEL.Height=svUsers.PANEL.Height+1%y+9%y
End If
Firing event
B4X:
Sub pnlUsers_Click
Dim pnlx As Panel
pnlx=Sender
SelectedUserdID=pnlx.tag
StartActivity("frmViewUserProfile")
End Sub
Pls give some clue.
Thanks
Juzer
Last edited: