dr. evil
dr. evil

Reputation: 27265

Disposing a control by calling its own BeginInvoke()

Disposing a control from by calling its own BeginInvoke() is a good idea or bad idea? Or shall I use the parent control or something like that to accomplish this task?

I'm using Invoke because I'm accessing the control form another thread.

Upvotes: 1

Views: 179

Answers (1)

Fredrik Mörk
Fredrik Mörk

Reputation: 158319

I cannot see why it should be a bad idea. Invoke or BeginInvoke does not do any special tricks other than calling the method on the right thread.

Upvotes: 2

Related Questions