check state of a method all the time
Hello!
I want to make a Dialer in VB. NET so I added a ActiveX component to my VB .NET project.
Now there is a line.CallState() method in this component which holds the state of the telephone line. When the line.CallState() = 100 in this moment the phone connects to other side.
Now i don't how to check the state of line.CallState() all the time.
I want to make something like this If Line.CallState() == 100 Then
MsgBox("You are now connected").
But line.CallState() is in state 100 just a sec(or less). When I start to speak the line.CallState() changes in a diferent mode...
tnx for help