I am debugging a WinForm control and it returns InvokeRequired = true although i am on Main thread.
Is it possible for a control to be child of a non-UI thread?
I thought control which is an UI component can only be child of UI thread.
I am debugging a WinForm control and it returns InvokeRequired = true although i
Share
Yes, it is possible, that control was created on some other thread than application (ui) thread, please see example bellow.
It is important to read control property Handle, that forces handle creation, see http://msdn.microsoft.com/en-us/library/system.windows.forms.control.invokerequired.aspx form more info.