Hi I'm using Windows Form, Vs2012, Infragistics 13.1 tools. VB Code
I'm looking for away to use InvokeRequired on a UltraDockManager. I can see that when I get the Cross Thread error (Cross-thread operation not valid: Control 'WindowDockingArea1' accessed from a thread other than the thread it was created on.) it is looking at a WindowDockingArea.
All I want to do is change the Tooltip on the Tab using Invoke. My original code is this
me.UltraDockManager.PaneFromKey("Apples").ToolTipTab = "Select your required Apple Type"
What would the code be to make it Thread Safe.
Regards
Paul
Thank you for the code. It was just what I was looking for.
Kind Regards
Hello Paul,
Thank you for contacting Infragistics.
I've attached a sample project that shows you what you need to do.
First, you need to create a Sub that contains the code you need to invoke from the background thread.
Next, declare a delegate with the same signature as the Sub created in the previous thread.
Finally, call Me.Invoke() and pass in as the first parameter "AddressOf SomeMethod". If SomeMethod requires any parameters, you will pass them as additional arguments to Invoke().