Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi every one
I need a code in vb6 to receive phone call over modem when connect phone line with computer , I tried many codes like
VB
Private Sub Form_Load()
MSComm1.Settings ="9600,N,8,1"
For i = 1 To 10
MSComm1.CommPort = i
On Error GoTo N
MSComm1.PortOpen = True
N:
If MSComm1.PortOpen = True Then
Exit For
End If
Next
End Sub

Private Sub MSComm1_OnComm() 
If MSComm1.CommEvent Then 
MsgBox " You have a phone call " 
End If 
End Sub

when I tried to make call modem work great
if there specific modem card to receive phone call or what is my problem

Thank you
Posted
Updated 2-Feb-13 21:14pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900