How can i change image index of a tree view node in a threadsafe manner? There is no Invoke() method for TreeNode class.
You can call Invoke
on the form instead of the component itself.
Component code executes on the thread of the form, so an invoke on a component simply delegates the operation to the form's thread. You'll get exactly the same result by using form.Invoke
as you would form.component.Invoke
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.