Make Your First ActiveX Control

Lesson 2
Tutorials - Page 1 - Page 2 - Page 3 - Page 4 - Page 5 - Page 6 - Page 7

Make an About box
Make an About property, that when the user will
press on the About property cell on the control Properties window,
A message box will show up with your details.

Add the following code to your form:

Public Sub AboutBox()
    MsgBox "This is my message", , "This is my title"
End Sub

Now from the menu choose Tools->Procedure Attributes.

Image 20:


From the 'Name' combo box choose AboutBox,
Click on the Advanced button, and from the 'Procedure ID'
choose AboutBox, and press OK.

Now a New property has just been added to your control - the About Property.

The End.

Back  Tutorials