Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
UltraDockManager InvokeRequired
posted

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

Parents
  • 18495
    Suggested Answer
    posted

    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().

    DockManagerThreadTest.zip
Reply Children
No Data