VB.Net how to call as Static method in a C# DLL

JElster
JElster used Ask the Experts™
on
Hi..
I have VB code that needs to call a Static method in C# code.
I can 'see' the classes in the C# DLL.
How do you call a static method from VB code
They are not visible?



 public static void Production(string _no)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015
Commented:
You first need to reference the dll through the Reference tab of the project's Properties window.

Once this is done, the static methods are called with the following syntax:

Namespace.ClassName.Production("yourNo")

If you do not know the namespace, go into the Object Browser after making the reference (View menu or Ctrl-Alt-J), and search for Production.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial