Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Ui Not being updated
Message
From
20/06/2009 09:11:30
 
 
To
All
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Title:
Form Ui Not being updated
Environment versions
Environment:
C# 2.0
OS:
Windows XP
Miscellaneous
Thread ID:
01407365
Message ID:
01407365
Views:
83
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
Map
View

Click here to load this message in the networking platform