Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb2005 label click event problem

vb2005 label click event problem

Scheduled Pinned Locked Moved Visual Basic
visual-studiodebugginghelpquestion
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RJGCarey
    wrote on last edited by
    #1

    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

    N M 2 Replies Last reply
    0
    • R RJGCarey

      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

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      worked for me?

      1 Reply Last reply
      0
      • R RJGCarey

        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

        M Offline
        M Offline
        Mitch F
        wrote on last edited by
        #3

        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

        R 1 Reply Last reply
        0
        • M Mitch F

          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

          R Offline
          R Offline
          RJGCarey
          wrote on last edited by
          #4

          That was it! Because of "pretty indenting" the Handle.Label1.Click was out of site on the right side and was misssingin the box I was testing. Thanks RCarey

          RCarey

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups