How do I call a visual basic 6.0 method in c#?
I would like to call a method which is written in visual basic 6.0 from c# (visual studio 2008). Is it possible? How would I do it? Easiest way to do it is to just compile the VB6 code as an ActiveX DLL. Then you can reference the DLL in your .net project. (Visual studio can reference ActiveX DLLs properly.) Compile your VB6 DLL as activex dll Register it using -> regsvr32 "Full Name And Path of newly compiled vb6 dll".(use Run Dialog or Command Prompt to register) In .net Add refrence - select com tab and search this newly registered dll Now you can use this dll. Note: Whenever you do any