Using MOVESIZE to position FORM under Cursor?

B

Bill Mitchell

Hi,

I have pop-up form that I would like to have appear beneath the arrow on my
mousepointer on the MouseMove event for a field on my continuous form.

I would think that I could just go:

Private Sub nyField_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)

DoCmd.OpenForm "MouseTip"
DoCmd.MoveSize X, Y

end sub

The MoveSize would grab the X and Y coordinates from my MouseOver. However,
what happens is the X coordinate seems to work, but the Y coordinate has no
effect. The form appears inline above my mouse at the top of the screen, but
it doesn't come down to the mouse pointer as specified by Y.

Can anyone tell me what I'm doing wrong here?

Also, I would like the mousepointer to "grab" the form once it opens so I
can move it with my mouse, then close it on MouseUp in its new location.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top