Form On Top (Your Application)

By | 2002-06-01

This ONE LINE of code will make a form stay on top of your application. This is good to use for toolbars, search forms, and so on. This WILL NOT make the form stay on top of all running applictions, only yours.

Original Author: Mr Hanna

Assumptions

Need Two forms, the second form being smaller then the first.

Side Effects

None that I know of

Code

'frmParent should be the main or large form
'frmToFloat is the name of the form you want
'"floating" or staying on top of your the
'Parent Form. :)
frmToFloat.Show , frmParent

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.