Hello Surabaya,

Why do you want to refresh it manually, doing a label.caption change
within OnDataAvailable should work.

But you could do all Socketing things in a thread and then use a timer
(every  second  for  example)  in  your  main  form  that  get info in
synchronized  way,  you  may also refresh main form from socket thread
but it could make form non responsive if you have a lot of activity.

Regards.

S> so I can't call application.processmessages at all?

S> what can I call if I need my user interface updated? for example I changed a
S> Label's caption and need it refreshed when accepting data?


S> On 2/20/06, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote:
>>
>> Hello Arno,
>>
>> >> what is message pump?
>> > For instance Application.ProcessMessages or anything else that
>> > processes messages.
>>
>> Or creating a modal form. ShowMessage etc, are also modal forms. Often
>> done for logging whilst developping. Better is to log to a console
>> window or a memo or whatever.
>>
>> ---
>> Rgds, Wilfried [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> http://www.mestdagh.biz
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to