10-05-2007, 05:20 PM
What's the difference?
If I make a UC using VB6 does it restrict me to saving the UC as a .OCX or can I save it as a .DLL?
How would I go about making a .DLL UC?
10-05-2007, 06:27 PM
In simple terms, they are very similar. Though a UC is graphical in nature. UCs allow users to set design time properties and DLLs don't. UC settings can be persisted (from VB instance to VB instance), DLLs cannot ... unless it writes a "propertybag" like file (.net changes that). DLLs don't have UC properties like ReadProperties, AmbientChanged, Click, etc, etc. So, I would say simply, they are not really interchangeable. Though converting DLL to OCX is much simpler because the main DLL class' code page can almost be pasted whole inside a blank UC's code page and requires very little modifications.