
July 7th, 2003, 11:48 AM
|
|
Registered User
|
|
Join Date: Apr 2003
Location: Atlanta, GA
Posts: 18
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
CallerID and Comm Port Question
I'm totally new to Visual Basic. I'm running VB 6.0. I'm attempting to create a program that will allow my computer to see the Caller ID of people that call the phone number of my computer. I've got a form which has only two items on it. It has an MSComm connection (called "MSComm1") and a text box. I am attempting to make this a simple as possible (nothing fancy). I just want the callerid information to appear in the text box when the call comes in. This is the code I have for the MSComm properties (in the code view):
Quote:
Private Sub MSComm1_OnComm()
' Open the serial port
MSComm1.CommPort = 1
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
MSComm1.InputLen = 0
MSComm1.InputMode = comInputModeText
txtCallerID.Text = MSComm1.Input
End Sub
|
Like I said, I'm new to VB and don't really understand what is going on. But right now, when a call comes in, the cursor in the text box just keeps blinking.
Can anyone help with with? Please?
Thanks in advance if you can.
DTFan
|