Results 1 to 6 of 6

Thread: fire mouse_enter event with mouse already down

  1. #1

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    fire mouse_enter event with mouse already down

    hey all...
    I need to fire an event when the mouse enters a panel with the mouse button already down. It seems the standard mouse enter, mouse move, etc events don't fire when the mouse is already down. With test code i'm using, all of the events fire when the mouse button is up, none fire when the mouse button is down.
    any ideas?

    edit...
    here is my test code..


    vb Code:
    1. Public Class Form1
    2.  
    3.  
    4.     Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
    5.         Debug.Print("MouseDown")
    6.  
    7.     End Sub
    8.  
    9.     Private Sub Panel1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseEnter
    10.         Debug.Print("MouseEnter")
    11.     End Sub
    12.  
    13.     Private Sub Panel1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseHover
    14.         Debug.Print("MouseHover")
    15.     End Sub
    16.  
    17.     Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
    18.         Debug.Print("MouseMove")
    19.     End Sub
    20.  
    21. End Class


    thanks
    kevin
    Last edited by kebo; Sep 5th, 2009 at 08:12 PM.
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: fire mouse_enter event with mouse already down

    Hmm... I don't know if it will fire. I tested with a panel and catching the WndProc event, and no messages were sent when the mouse entered and the button was down.

  3. #3

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: fire mouse_enter event with mouse already down

    hmmmm.. well that sucks....thanks for looking into it Negative0
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: fire mouse_enter event with mouse already down

    you can use the dragdrop events

  5. #5

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: fire mouse_enter event with mouse already down

    Quote Originally Posted by .paul. View Post
    you can use the dragdrop events
    with out the cursor changing?
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  6. #6
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: fire mouse_enter event with mouse already down

    you can use any cursor you choose during dragdrop operations.
    just set the cursor in the appropriate _giveFeedback event

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width