Make Your Own Control - Part 1
Click File, New Project. Select a Standard EXE file. Click Project, Components. Click on the Browse button. Go to the directory where you made the OCX file and double click on it. Click OK. Draw the control on to the form. Open up the code window for the form. Go to the form's Load procedure. Add this code:
Private Sub Form_Load() OnTop1.MakeTopMost (Me.hwnd) End Sub
Or, if you want it to become normal, use:
Private Sub Form_Load() OnTop1.MakeNormal (Me.hwnd) End Sub
Run the Project (F5).
Page 3 of 3