2
Answers

Creating an ocx from a Usercontrol made with VB Net ????

michel.sansoe

michel.sansoe

20y
1.7k
1
I developped a long time ago a program to manage photos. This program works fine but I would like to add more functions like rotation, modifications on that photos. It's quite impossible to migrate it to VB Net as it is using a lot of functionalities that are too complex for the migration wizard. Then I decided to modify only the usercontrol I made previously with VB 6, writing it with VB net, creating an ocx file and using it in my VB6 program. Is ther somebody who knows how I can do to create an ocx file from VB Net ???? Thanks a lot.
Answers (2)
0
michel.sansoe

michel.sansoe

NA 3 0 20y
Hello Mike, Thank you for your answer.... Do you have a small example or a step by step procedure to do so ? That could be helpfull for me to understand exactly what you mean. Thank you again, Michel S.
0
jcity444

jcity444

NA 286 0 20y
.NET allows you to make your assembly accessible to COM through a CCW (COM callable Wrapper) You can add com functionality to your VB.NET control by placing attributes above your methods such as dispid or progid. You also need to register your dll assembly after coding using regasm. -Mike G.