Multiple Thread

J

J E Jensen

Hello NG

I want to implement TAPI to my application. The TAPI component i a Class
that is placed i my application. my application has reference to TAPI3 from
Microsoft.
I want to make a listner to get incomming call - and that works just fine. I
have a status bar in my application and whenever TAPI detects a call i se
the call and callerid on the status bar, just fine.

Now I want to notify the user by open a small form with informations based
on the callerID, so I gather some infos from by database (customer /
contactperson) and gets at DataTable with all that information. Then i opens
a new form and send the datatable to that form.

Somehow the notify form i open i another thread than my application (mabye
the TAPI thread) but when the form opens its getting the (not responding
text on title bar).

Could someone please help me here?

Kind regards
Johnny E. Jensen
 
J

J E Jensen

Hello Again

I found an example that i could use.
When the TAPI component sends its status and callerid to my application i
opens the TAPIForm with infos in another thread. So far so good.
But on the TAPIForm i want to have buttons to open a customer- or
contactperson form. These froms exists on på application (thread) so another
problem??

Is there a way to keep the TAPI component in the same thread as my
application?

Kind regards
Johnny E. Jensen
 
A

Andreas Müller

Hi,

i do not think that it will be possible to bring the TAPI-component in the
same thread. But you can synchronize the event and your form. Have a look at
"InvokeRequired" property and "BeginInvoke" of the form. I think you will
find many examples on google (ups, bing ;-)). With these tow things you can
handle the event in the same thread as the form, then you should not habe
any problems with not responding forms.

Regards
Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top