Page 1 of 1

Vb.net dll in ranorex

Posted: Tue Mar 13, 2012 8:03 am
by rohitjain3333
Please tell me if there is any way to access the vb.net dll in Ranorex. :?:
I am coding in C#.

Re: Vb.net dll in ranorex

Posted: Tue Mar 13, 2012 2:45 pm
by Support Team
Hi,
Please tell me if there is any way to access the vb.net dll in Ranorex.
Yes, you can use vb.net dlls, just add the dlls as reference to your C# project.

Regards,
Markus
Ranorex Support Team

Re: Vb.net dll in ranorex

Posted: Thu Mar 15, 2012 5:12 am
by rohitjain3333
Please provide me the syntax for the same.

Re: Vb.net dll in ranorex

Posted: Thu Mar 15, 2012 9:51 am
by Support Team
Hi,

You can use it like you would use a C# dll.
I have created a small VB.net sample solution "VBDll" which includes a Class named "Class1.vb" and this class includes a method named "test":
public Shared Sub test()
      MsgBox("Hello World")
End Sub
After i have added the created dll to my normal C# solution I executed the method with the following code:
VBDll.VBDll.Class1.test();
Ragards,
Markus
Ranorex Support Team