I have a function written in vb
Public Function abc (ByVal x as Integer, ByVal y as String) As String
End Function
I want to call this function on click of a button in C# applcation.
If your VB function is inside a module, you need to call it by specifying the module name.
string result = MyVbModule.abc(1, "Hello");
You may also need to specify the namespace, wich per default is the name of the VB project:
string result = MyDll.MyVbModule.abc(1, "Hello");
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