c# - When does the vaIue of the InvokeRequired property change? -
When I want to use delegate class to call windows to work, I It's okay to always have to use InvokeRequired. But when it is working, then the Enverkerclide property has changed. Please check this image:
You are calling Delegate.BeginInvoke
In the button1_Click
, which means SayListeyeEkle
will be called in thread-pool thread - which means that it's true that the InvokeRequired
is correct If you call List1Ekle
directly in the UI thread, then does not will not be correct.
Comments
Post a Comment