Executes a delegate on the thread that owns the control's underlying window handle
-
Hi I want to use this lovely code in a WPF app but there is no Invoke method for WPF's TextBox so I have a run time error which say that the SerialPort's Thread is trying to change the TextBox that owns to another thread anybody have any idea? here is the code(article), I am talking about: http://www.codeproject.com/KB/cs/virtualports.aspx?msg=3291065#xx3291065xx
-
Hi I want to use this lovely code in a WPF app but there is no Invoke method for WPF's TextBox so I have a run time error which say that the SerialPort's Thread is trying to change the TextBox that owns to another thread anybody have any idea? here is the code(article), I am talking about: http://www.codeproject.com/KB/cs/virtualports.aspx?msg=3291065#xx3291065xx
The Invoke method in WPF was moved to the Dispatcher object, which can be accessed via the Dispatcher property on the TextBox.
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
The Invoke method in WPF was moved to the Dispatcher object, which can be accessed via the Dispatcher property on the TextBox.
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
thank you very much I was really confused