Im haveing trouble using Invoke Remotely on the Dev Express demo application you can download from their website. I am using the XtraEditors demo application, and which to invoke upon a ButtonEdit control.
Here is my code:
Code: Select all
Module Module1
Sub Main()
Dim objForm As Ranorex.Form
Dim objFileName As Ranorex.Control
'get form
objForm = Host.Local.FindSingle(Of Ranorex.Form)("/form[@controlname='FrmMainXtraEditors']")
'get file name text box
objFileName = objForm.FindSingle(Of Ranorex.Control)("descendant::" & "control[@controlname='buttonEditSample']")
'set text
objFileName.InvokeRemotely(AddressOf DXTextBoxHelper.delSetText, "hello")
End Sub
End Module
Code: Select all
Public Class DXTextBoxHelper
Public Shared Function delSetText(ByVal EditorControl As System.Windows.Forms.Control, ByVal notused As Object) As Integer
End Function
End Class
However when i run this I get an exception:
"Action Invoke Remotely failed on element {unknown:buttonEditSample}"
Help?!!
Regards