dcsimg
August 20, 2018
Hot Topics:

Make Your Own Control - Part 1

  • November 19, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

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



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date