Form Always on Top - No Exceptions

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
These two functions and sub procedure will keep your program on top no matter what. Even if you have another program running that is set to 'always on top', this code will take precedence over that form. Simply add a timer control to your form and set the Interval property to 1.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: