Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making an acitivex

Status
Not open for further replies.

uprocker2

Programmer
Dec 26, 2004
34
0
0
BE
some questions:
*whats a ocx
*whats it used for
*why do ppl make then
*what are the basics for making one
just asking some questions couse i don't know anything about it

sign07.GIF
sign07.GIF
sign07.GIF
Uprocker2
sign06.gif
sign06.gif
sign06.gif
 
1) The short meaning is a user control
2) Making your own controls for vb etc
3) So you can re-use them
4) just select user control from the start wizzard, add a button to the for and put a message box in it. Compile to OCX.

Start a new app and right click tool bar and select components.. and select you ocx

Add it to form and run your project
 
1. an ocx is a dll that hosts an activex control or set of controls.
2. activex controls are used in all sorts of apps. some are grids, some are buttons that someone might have made so that they can have buttons with weird shapes or more functionality than traditional buttons.
3. activex controls are made so that they can be used in any programming environment that hosts them. So you can make an ActiveX control in VB and use it in a Visual C++ project, or vice-versa (even foxpro, delphi,etc.)
4. the most basic things about making activex controls I can tell you are this:

first, figure out why you need this control. Is there already a free one out there that does what you need. If it's not free, is it more cost-efficient to spend the time to make it yourself, or to just purchase the existing one.

If you still feel you need to make your own, or just want to do it for the experience, the MSDN has plenty of step-by-step tutorials on making them. Hope this helps

BlackDice

 
Definition: (OCX) An Object Linking and Embedding (OLE) custom control allowing infinite extension of the Microsoft Access control set. OCX is similar in purpose to VBX used in Visual Basic. Available OCX's include "Scroll Bar Control", "Calendar Control", and "Data Outline Control".
 
AEtherson, jolly well looked up. Sadly, that particular definition - whilst available in a number of 'what is" type websites - is at least 9 years old, and therefore a little misleading.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top