vb2005 label click event problem
-
I have a project created in VB5 and migrated to VB6, VBNet 2003, and VBNet 2005. I recently placed some labels on the form. When I clicked on the labels VS created the code to handle the click event. I placed my code in the event handler. When I ran the project in the debugger I clicked on the labels. Nothing happened! Labels are more complicated in 2005 compared to 2003. I checked their properties. Enabled is true. I don't see any others that would apply. What am I missing? Thanks RCarey
RCarey
-
I have a project created in VB5 and migrated to VB6, VBNet 2003, and VBNet 2005. I recently placed some labels on the form. When I clicked on the labels VS created the code to handle the click event. I placed my code in the event handler. When I ran the project in the debugger I clicked on the labels. Nothing happened! Labels are more complicated in 2005 compared to 2003. I checked their properties. Enabled is true. I don't see any others that would apply. What am I missing? Thanks RCarey
RCarey
-
I have a project created in VB5 and migrated to VB6, VBNet 2003, and VBNet 2005. I recently placed some labels on the form. When I clicked on the labels VS created the code to handle the click event. I placed my code in the event handler. When I ran the project in the debugger I clicked on the labels. Nothing happened! Labels are more complicated in 2005 compared to 2003. I checked their properties. Enabled is true. I don't see any others that would apply. What am I missing? Thanks RCarey
RCarey
On the Sub that handles the Click, does something similar to "Handles LabelName.Click" follow it? The code that VS created should look something like:
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub
I hope this helps, Mitch -
On the Sub that handles the Click, does something similar to "Handles LabelName.Click" follow it? The code that VS created should look something like:
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub
I hope this helps, Mitch