Click here to Skip to main content
15,887,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to access "ellipse" shape on a form,from a class which is running on a different thread by passing a method via delegate which allows to change ellipse' width ..but whenever i try to call that mnethod , it gives me a exception saying "Invalid Operation Exception".
Posted
Comments
dan!sh 13-Jan-15 0:53am    
Can you update your question with relevant code block? Please do not put code in comment.

1 solution

You can use UI invocation mechanism. Please see my past answers:
Problem with Treeview Scanner And MD5[^],
Control.Invoke() vs. Control.BeginInvoke()[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900