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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do Win32 coponents work with Dot Not apps?

Status
Not open for further replies.

smitty654

Programmer
Jul 9, 2008
21
CA
I was wondering if a component that was made for Win32 would work for Dot Net?
 
I'm sorry, that was a typo. I meant 'Dot Net apps'!
 
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:

 
This will work for any Win32 component? If so, are there tutorials / code snippets on how to do it?
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top