Does anyone know how could I place my form in the lower right of the window without covering the taskbar? Even if user changes the display settings, the same thing will happen. Any ideas? Thanks.
Yeah, I'm also wondering about that. Why going through all the "trouble" with API calls when it's as easy as strongm suggests? Since it's all about positioning a Form, you already have a container for the control....
Greetings,
Rick
The program I'm creating will be given install in other computers. It's easier to install a program if it's less control and it's size is lesser compare to an application with so many controls. Thanks for your answers, I found a code which solve my problem. Here it is:
Option Explicit
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function SystemParametersInfo Lib "user32" Alias _
"SystemParametersInfoA" (ByVal uAction As Long, _
ByVal uParam As Long, ByRef lpvParam As RECT, _
ByVal fuWinIni As Long) As Long
Private Const SPI_GETWORKAREA = 48
Private Sub Form_Load()
Dim r As RECT
SystemParametersInfo SPI_GETWORKAREA, 0, r, 0
With Me
.Move r.Right * Screen.TwipsPerPixelX - .Width, _
r.Bottom * Screen.TwipsPerPixelY - .Height
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.