Click to See Complete Forum and Search --> : ActiveX ???


Ivan Yap
August 23rd, 2001, 01:00 AM
can anyone teach me how to create a activeX ?


Ivan Yap B.C
ivanyapbc@hotmail.com

Cakkie
August 23rd, 2001, 05:04 AM
ActiveX what?

There are several types of ActiveX aware things.

Control:
This is a control that can be used on a form. By adding public subs/function/properties to the control, you can expose methods to the form on which the control resides. Using events, you can notify the form that something has happened

private Sub MyControl_MyEvent()
MyControl.SomeSub
MyControl.SomeProperty = "SomeValue"
MyControl.Top = 100
MyControl.Left = 100
End Sub




Another ActiveX thingy are exe's and dll's
These are not placed on a form, but are refferenced to using code. This happens through objects called classes. If you have ever used classes in any of your application, you will be started quite fast, if not, you might just want to start here to get the hang of it.
Again, public functions/subs/properties expose stuff.


Dim myObj as MyDll.MyClass
myObj.SomeSub
myObj.SomeProperty = "SomeValue"




Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

John G Duffy
August 23rd, 2001, 07:47 AM
If its an ActiveX control you want to create, go to http://search.microsoft.com/us/SearchMS.asp and search on "Creating an ActiveX control" (Without the quotes of course). It's a 200+ page document that tells you most of what you could ever want to know.

John G