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: Alt Text

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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -