Almost everything Windows knows how to handle ActiveX. So the trick I use is to create a Delphi control and convert it into an "invisible" ActiveX Control. Then you can use it in .NET.
When I say "invisible" ActiveX Control what I mean is, once it's installed in the toolbox or toolbar, you can drop it on a form but it's invisible at runtime. As example, I have an ActiveX Control that does Windows Message Dialogs but painted with various color schemes. It's made from a Delphi 5 control that I coded and can be used in anything that can do ActiveX.
I have a freeware launcher that uses 2 ActiveX I made from Delphi 5 controls I wrote. One does the dialogs as I mentioned, the other does "instance" control with command tail transfer. You can take a look at the app on this page:
The operative work is Control, not Component. A component
doesn't have a handle. Delphi 5 lets you convert a VCL Control into an ActiveX Control. There's a wizard for doing it in the IDE.
There's too many 100s of web pages how to use ActiveX controls for me to rehash it. Look in the online help for whatever IDE you are using.
smitty654 if you want more particulars please use the contact page at the site. I don't want to be accused of spamming so that's all I'll say about it here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.