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?
The syntax for calling a function in VB and VBA is lvalue = functionName (argument1, argument2) . If there is more than one argument (like in this example), you'll separate the arguments with commas. You must provide values for all arguments that aren't optional.
Abstract. Visual Basic is a part of the Microsoft Visual Studio and is the flagship development language for Microsoft. You can develop applications for a stand—alone or networked computer system, you can create your own controls and even develop applications for the Internet.
Notice that new Visual Basic projects start with a default name of Project1. The project also contains one form that has a default name of Form1.
The Visual Basic 6.0 IDE is no longer supported as of April 8, 2008.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With