I am tinkering with treenode widget in Mono. When I have changed the node it dosnt refresh immediately. I only refreshes when I change the selection of the nodeview. How can I force it to refresh immediately after the change?
+1
A:
I supose as I wrote in comment that you're not updating the node from the main thread.
There are two easy solutions for this, first is to wakeup main thread after change via ThreadNotify
class or use Application.Invoke
to run the updating method in main thread context.
More info about using this techniques can be found here.
Yakeen
2009-10-01 20:43:49