odklizec wrote:Hi,
Ranorex has an ability to convert the C# code to VB .NET code and vice versa. Check this User Guide post...
http://www.ranorex.com/support/user-gui ... rsion.html
I can't believe I didn't think of that. I tried the Telerik converter but it didn't like the
Code: Select all
TestSuite.TestSuiteCompleted+= new EventHandler(TestSuite_TestSuiteCompleted);
I think I'll be able to work around that. The event handler code is where I was having trouble.VB does not support anonymous methods/lambda expressions with a statement body
The converted VB code to add the handler is
Code: Select all
TestSuite.TestSuiteCompleted = DirectCast([Delegate].Combine(TestSuite.TestSuiteCompleted, New EventHandler(AddressOf TestSuite_TestSuiteCompleted)), EventHandler)
Thanks again, this has been extremely frustrating.