General information
Category:
.NET Compact Framework
Title:
Form Ui Not being updated
Hi, all
I am developing an application for trading exchange in C# with OS windows-XP. and trying to update incoming and out going messages to main UI form. i am using delegates for this. My code is as ........
if (InvokeRequired)
{
object[] pList = { message };
Txt_RecievedFrmCOM.BeginInvoke(new WriteLineDelegate(WriteFix2), pList);
}
else
{
WriteFix2(message);
}
But nither the property Invokerequired is being true nor else part is being successful for updating UI. while text property of the textbox is being set with updates of message. but it is not being visualised in the form.
And if calling delegate method on Invokerequired == false; then it is showing exception message
"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."
Can any one help me ? Plz .........
Thanks in advance
Sanyog Tripathi
L-Tech India software systems pvt ltd.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only