Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

is that possible to create .ocx

Posted on 1999-07-11
4
Medium Priority
?
196 Views
Last Modified: 2010-05-02
what is the different between ActiveX Control and OCX.
How can I create a simple OCX ?
Can you show me ?
0
Comment
Question by:internet08
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
acarey earned 200 total points
ID: 1523605
An ActiveX control _is_ an OCX. VB and VC++ can also create ActiveX DLLs. The difference between the OCX and the DLL is that the OCX exposes both a control and a class structure, whereas the DLL exposes only a class structure.

To create a simple OCX in VB, start VB. Choose File | New Project, choose ActiveX Control. An empty ActiveX Control project loads.

The project can store multiple controls. Each entry in the User Controls folder in the Project browser represents the UI component of a single control. You can add supporting forms, modules and classes as for other project types.

Controls added to a User Control page will appear as part of your control's UI when you use that control in a new project.

The VB documentation does include several very good examples of how to create simple OCXs. Certainly explaining how to do this in this forum is beyond the scope of a single message, as you need to understand how classes work. I recommend you read the VB documentation on classes, ActiveX DLLs and (finally) ActiveX OCXs.
0
 

Author Comment

by:internet08
ID: 1523606
can you tell me how to get that documents.
0
 

Expert Comment

by:acarey
ID: 1523607
They came with VB when you _purchased_ it... you did purchase it, right?
0
 

Author Comment

by:internet08
ID: 1523608
can you show me a simple example ?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question