Vb.net dll in ranorex

Class library usage, coding and language questions.
rohitjain3333
Posts: 20
Joined: Tue Sep 20, 2011 7:12 am

Vb.net dll in ranorex

Post by rohitjain3333 » Tue Mar 13, 2012 8:03 am

Please tell me if there is any way to access the vb.net dll in Ranorex. :?:
I am coding in C#.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Vb.net dll in ranorex

Post by Support Team » Tue Mar 13, 2012 2:45 pm

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
.
Image

rohitjain3333
Posts: 20
Joined: Tue Sep 20, 2011 7:12 am

Re: Vb.net dll in ranorex

Post by rohitjain3333 » Thu Mar 15, 2012 5:12 am

Please provide me the syntax for the same.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Vb.net dll in ranorex

Post by Support Team » Thu Mar 15, 2012 9:51 am

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
.
Image