Search Tools Links Login

Always On Top Property At Runtime


If you paste this code to your Form will have a new form property which when set to true will keep you window (form) above all other open windows even when it does not have the focus.

One issue with it is that it might work or might not work in the IDE. I've seen both cases. It also does not work for MDI children.

Pay attention to the commented form resize code. If you window can be minimized it will lose the setting so you will need to uncomment the resize code to make sure that it is restored properly. Happy coding.

About this post

Posted: 2019-08-27
By: fabulous
Viewed: 233 times

Categories

Visual Basic 6

Attachments

AlwaysOnTop.txt
Posted: 8/27/2019 9:44:46 AM
Size: 850 bytes

Special Instructions

This code originally appeared on AndreaVB.com, and has been republished here with the permission of Andrea Tincani.


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.