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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form on top

Status
Not open for further replies.

Helen1greece

Technical User
Jun 4, 2003
85
GR
How can I make a form of my program to be always on the top, over the other open windows and never go behind the other windows even if I click on them?
 
This is covered by thread222-269035. It uses the SetWindowsPos API, so if you want to lookit up yourself

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
If you are trying to show a form and have it not lose focus until the user closes it you can try:

Form1.Show vbModal

Hope this Helps
 
I don't know how to use the vbMobal. Can you help me more?
 
You use it just like k2w says: You take the form variable (you did do a Dim Form1 As Form, right?) and show it modally using the predefined constant vbModal.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top