Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 forms

Status
Not open for further replies.

johndelphi

IS-IT--Management
Jul 1, 2003
10
0
0
ZA
if you have 2 forms, and you want one form to always stay on top, how would you do that?
 
Hi

You can run the second form with Show function, and write the Left and Top properties with the values that You want.

Regards
 
Hi.

You can use ShowModal..

or

Set formstyle to fsStayOnTop..

or

With Self Do
SetWindowPos (Handle,
HWND_TOPMOST,
Left,
Top,
Width,
Height,
SWP_NOACTIVATE Or SWP_NOMOVE Or SWP_NOSIZE);

set this code in your form create event.

cheers,
mha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top