Positioning Popup form

M

Mark A. Sam

Hello,

Is it posible to position a popup form relative to the position of a textbox
on a form? I have a popup called [Numpad] which positions itself based
using the Load Event, with the calling form maximized. If the calling form
isn't maximized, obviously it will be in the wrong position based on those
coordinates.

So when I enter the textbox form [Numpad] is opened and positions itself
with this proedure:

Private Sub Form_Load()

If Not IsNull(OpenArgs) Then
Dim i1 As Integer, i2 As Integer
i1 = CInt(Parse(OpenArgs, 1, "-"))
i2 = CInt(Parse(OpenArgs, 2, "-")) + 3000
DoCmd.MoveSize i1, i2
End If


End Sub

I can place [Numpad] on the calling form as a subform, but would like to use
a floating form instead.

Thanks for any help.

God Bless,

Mark A. Sam
 

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