Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Ui Not being updated
Message
De
20/06/2009 09:11:30
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
.NET Compact Framework
Titre:
Form Ui Not being updated
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP
Divers
Thread ID:
01407365
Message ID:
01407365
Vues:
82
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform