Link to home
Start Free TrialLog in
Avatar of j88
j88

asked on

Form postion on Desktop.

Hi Experts!
Ā  please help me code to set form on start with position: right-bottom of screen (desktop) but above Taskbar

thanks.
Avatar of calinutz
calinutz
Flag of Romania image

Set the form style to fsStayOnTop
and then onShowForm event do this:

Form1.Top:=Screen.Height-Form1.Height;
Form1.Left:=0;

ASKER CERTIFIED SOLUTION
Avatar of calinutz
calinutz
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin