3 Replies - 3181 Views - Last Post: 02 November 2008 - 07:09 PM Rate Topic: -----

#1 teamtek3  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 04-October 08

form_mouseMove

Posted 02 November 2008 - 03:02 PM

so I have a code where an icon is placed in the system tray and blah blah blah, my issue is that the code below doesn't work when the user moves the mouse over the form or over the system tray icon, any ideas? it seems to work in any other tutorial and the downloadable projects that are on the net, just not my program....
I have tried a ton of different things to get this to work but it seems like no matter what, it doesn't work for my program even when i have copied and pasted the exact same stuff from a tutorial project that i have downloaded that works when tested....

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
msgbox "hello world"
end sub



Is This A Good Question/Topic? 0
  • +

Replies To: form_mouseMove

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3872
  • View blog
  • Posts: 11,405
  • Joined: 18-April 07

Re: form_mouseMove

Posted 02 November 2008 - 03:45 PM

You don't happen to have a panel or any other control on the form do you? If there is a control on top of the form, the form_mousemove won't trigger because you are actually moving over the top of a control.

Try starting a brand new project. When it opens, double click the form and put in the event, then test. It should work then. If it does, then you know you have a problem with the form receiving the event on your project. My guess is that you have a control taking the focus when you move over the frame.

You can also show us what else you have going in the project. We can't possibly tell you everything from a simple one line event.

But look at controls taking the mousemove event away from the form. :)
Was This Post Helpful? 0
  • +
  • -

#3 Kresha7  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 22
  • Joined: 02-November 08

Re: form_mouseMove

Posted 02 November 2008 - 06:00 PM

excualy i dont know what you trying to do when you put that into the mousemove event its bether when you put it into the mouse down event
cause in the mouse move you get endless msgboxes


Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MsgBox ("Welcome")
End Sub
Was This Post Helpful? 0
  • +
  • -

#4 teamtek3  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 04-October 08

Re: form_mouseMove

Posted 02 November 2008 - 07:09 PM

ok so i figured out the issue, i had a few things on the form that weren't allowing the mousemove calls being directed to the form, they were being directed to sstab1 which is my tabs on the form, all i had to do was make sstab1.visible = false when the window is minimized and visible = true when the program is brought back up and it works perfectly fine now!


thank god that one's over, took 2 weeks to figure it out.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1