0

We are planning phased migration of a vb6 project to vb.net. Hence we want to refer some objects in our vb6 EXE like textbox, msflexgrid from vb.net DLL.

Someone has mention in this link that it's not possible (You can't pass the managed object to VB6)

Is it possible?

IT researcher
  • 3,274
  • 17
  • 79
  • 143
  • This is probably a duplicate of some other question - but here's some high level notes. You can pass a COM wrapper of a managed object to VB6, and it will look much like it would from .NET. Depending on the source of the object there may or may not be a COM wrapper already, or you may or may not be able to create one. If you can provide more details of the control itself that would help. Even if you can't wrap the object itself for some reason, you might be able to pass an object which serves as a proxy. – StayOnTarget Mar 18 '19 at 14:29
  • The following may have the information you need: https://stackoverflow.com/questions/459250/can-net-custom-controls-be-used-in-vb6-form, https://stackoverflow.com/questions/3346620/making-a-dll-com-accessible, – StayOnTarget Mar 18 '19 at 14:35
  • @DaveInCaz the control object to pass between vb6 exe and .net dll will be textbox,flexgrid – IT researcher Mar 19 '19 at 10:13

0 Answers0