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
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to capture a mouse move control in a container in vb.net 2005

how to capture a mouse move control in a container in vb.net 2005

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdockertutorial
2 Posts 1 Posters 0 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.
  • A Offline
    A Offline
    Andraw Tang
    wrote on last edited by
    #1

    Hi, I have a form with one textBox and a label, by default the label is disabled which contain some message. if textBox is disabled, when mouse move to this textbox area, the message is label is shown, if the mouse move out of the textbox area, the label is hide again. everything works fine if I put these two control in form. But if I create a groupbox in the form and put these two control to the groupbox, this doesnot work any more, why? how can I use mousemove to capture the control in a container? Thanks!

    A 1 Reply Last reply
    0
    • A Andraw Tang

      Hi, I have a form with one textBox and a label, by default the label is disabled which contain some message. if textBox is disabled, when mouse move to this textbox area, the message is label is shown, if the mouse move out of the textbox area, the label is hide again. everything works fine if I put these two control in form. But if I create a groupbox in the form and put these two control to the groupbox, this doesnot work any more, why? how can I use mousemove to capture the control in a container? Thanks!

      A Offline
      A Offline
      Andraw Tang
      wrote on last edited by
      #2

      Solve it. The MouseMove event must be set on the parent control. and when get the control from mousemove, should use following syntex: Private Sub GroupBox1_MouseMove() Dim parent As Control parent = sender Dim ctrl As Control ctrl = parent.GetChildAtPoint(e.Location) ......... end sub Thanks!

      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