Results 1 to 9 of 9

Thread: ActiveX and OCX??

  1. #1

    Thread Starter
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249

    Cool

    Hi,

    I would like to know What is the basic different between ActiveX and OCX?

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Theyre the same in VB if you make an Active X control it is saved as an .ocx file

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    ActiveX is the general name for Active X ocx and dll's.
    An ocx is a compiled usercontrol (the same as a dll is a compiled class (one or more....).
    So, ocx = ActiveX. Just another way of referring to the same.
    Hope this helps

    Crazy D

  4. #4
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    It's like this:

    You have a Word Document, which is saved as .Doc

    You have an ActiveX control, which is saved as .Ocx


    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  5. #5

    Thread Starter
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Hi,
    OK - SO there is is no different between ActiveX and OCX - so how can i add a properites to a control ? how can i add my control to ToolBox of VB?
    Regards

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    you have to use property Get and Property Let and then save the things into the property bag

  7. #7
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    there is this wizard called the activeX Control Interface Wizard that manages the properties ands method and events of an activeX control in VB 5 Enterprise (should be, my school uses it). if you dun see it in the Add In Menu, you can load it from Add In Manager otherwise, you have to install VB again with that option checked....
    YC Sim
    Teenage Programmer
    UIN 37903254



  8. #8
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Well, if you are new to ActiveX development, use the ActiveX control Interface Wizard. Start with just a couple of properties so you are not confused. Once your control is ready with these properties, go to File > Make OCX and compile your control into an .OCX file. Once the compilation is over, the control will appear in the components list which you get by Project > Components.
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  9. #9

    Thread Starter
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Thnaks For The Info....
    Best Regards

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