Can I simply use delegate even though it may not be required?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When calling
Control.Invoke, you don’t need to checkInvokeRequired, it checks it for you.Control.BeginInvokefrom the same thread is useful at times, it puts the call on the end of the message queue instead of making it immediately.It’s really not clear enough what you’re doing to give specific advice.
Looking at your sample code, this is all you need:
or, if you can’t change the caller: