When I want to use the delegate class to call while working with windows, I always need to use InvokeRequired. All is well. But who changed the InvokeReuqired property at runtime. Please check this image:
You call Delegate.BeginInvokein button1_Click, which means it SayListeyeEklewill be called in the thread pool thread, which means true for InvokeRequiredis true. This would not be true if you would call ListeyeEkledirectly from button1_Clickwithin the user interface thread.
Delegate.BeginInvoke
button1_Click
SayListeyeEkle
InvokeRequired
ListeyeEkle
InvokeRequired - true, , , , false . , , InvokeRequired "" ; , , .
true
false
" InvokeRequired"? , true/false ? true, BeginInvoke, . , "" , . InvokeRequired , , , InvokeRequired true. , , false. NotOnThreadIWasCreatedIn, , . InvokeRequired , ...
NotOnThreadIWasCreatedIn
Source: https://habr.com/ru/post/1720288/More articles:Objective-C: what is personal and what is not? - privateCGBitmapContext gets the pixel value of Leopard vs. SnowLeopard confusion - cocoaJQuery UI dialog box: how can I get the dialog settings? - jqueryWhat are the origins of standard port numbers? - port-numberselect a column from a dataset using LINQ - linqC # - use partial classes or separate sections? - c #How to open CSV or XLS with Jet OLEDB and get a table lock? - c #Drupal Imagecache Π½Π΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ - drupalJoin django ORM - djangoIn Asp.Net, check for an aspx page before redirecting to it? - redirectAll Articles