CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: ActiveX ???

  1. #1
    Join Date
    May 2001
    Posts
    17

    ActiveX ???

    can anyone teach me how to create a activeX ?


    Ivan Yap B.C
    [email protected]

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: ActiveX ???

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: ActiveX ???

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured