Information générale
Catégorie:
.NET Compact Framework
Titre:
Form Ui Not being updated
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement