Hi,
How do i get the hight and width of the current form?
I'm trying the above but the numbers don't look right?
I want add a function call to every form that resizes the DB shell to the size of the current open form
But i can't seem to get the info I need , though I do have the resize working...
How do I get the info i need to pass to my function?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
MIME::Lite TLS Email Encryption - Perl v0.02 beta
How do i get the hight and width of the current form?
Code:
MsgBox Me.WindowLeft & " - " & Me.WindowTop & " - " & Me.Form.Width & " - " & Me.Form.WindowHeight
I'm trying the above but the numbers don't look right?
I want add a function call to every form that resizes the DB shell to the size of the current open form
But i can't seem to get the info I need , though I do have the resize working...
Code:
Declare Function apiMoveWindow Lib "user32" Alias "MoveWindow" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
Public Function resizeApp(iLeft As Integer, iTop As Integer, iWidth As Integer, iHeight As Integer)
apiMoveWindow Application.hWndAccessApp, iLeft, iTop, iWidth, iHeight, True
End Function
How do I get the info i need to pass to my function?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
MIME::Lite TLS Email Encryption - Perl v0.02 beta