Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Community Forums
 Community Discussions (All other subjects)
 UI Not being updated

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
sanyogtripathi Posted - 22 June 2009 : 15:37:35
I want to write incoming and out going messages to the UI Form. But when i am calling BeginInvoke method. it is showing exception message
"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."
and Invoke required method is not being set to true, which should be set when calling method from another thread.
I am using following code.
if (InvokeRequired)
{
object[] pList = { message };

Txt_RecievedFrmCOM.BeginInvoke(new WriteLineDelegate(WriteFix2), pList);
}
else
{
WriteFix2(message);
}
So can any one help me and let me know that how can i Update it to the textbox on UI Form.
Thanks In Advance.......... Please reply........

<moved from="DEV Discussions (General)" />
1   L A T E S T    R E P L I E S    (Newest First)
Carefree Posted - 22 June 2009 : 21:02:41
quote:
Originally posted by sanyogtripathi

I want to write incoming and out going messages to the UI Form. But when i am calling BeginInvoke method. it is showing exception message
"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."
and Invoke required method is not being set to true, which should be set when calling method from another thread.
I am using following code.
if (InvokeRequired)
{
object[] pList = { message };

Txt_ReceivedFrmCOM.BeginInvoke(new WriteLineDelegate(WriteFix2), pList);
}
else
{
WriteFix2(message);
}
So can any one help me and let me know that how can i Update it to the textbox on UI Form.
Thanks In Advance.......... Please reply........

<moved from="DEV Discussions (General)" />



Not familiar with the method, but you misspelled "received" and that may affect it.

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07