Event click in Label

  • Thread starter Thread starter David Amador T.
  • Start date Start date
D

David Amador T.

Hello I want to execute a form when the user does click in a label but the
event click is apparently not called.

Private Sub PictureBox2_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles PictureBox2.Click
Dim oFrm As New FrmUno
oFrm.Show()
End Sub

Thanks-...
 
Are you asking about a Label control or a PictureBox control? If you're
inquiring about the Label control then the Click event isn't supported. You
may consider looking into the SDF (http://www.opennetcf.org/sdf) source to
see how to build a control that displays text and handles clicks
(LinkLabel). If you're inquiring about the PictureBox control then the click
event should be supported. If it doesn't work for you then try upgrading to
SP3
(http://www.microsoft.com/downloads/details.aspx?FamilyID=a5a02311-194b-4c00
-b445-f92bec03032f&DisplayLang=en).
 
Back
Top