Home All Groups Group Topic Archive Search About
Author
2 Mar 2007 6:15 AM
Luis Tarzia
Hello,i need make a call with the modem.
In my application exist a text box,in this the phone number of client.
When press the button the app need make the call to the client phone number.
Any exmaples ??
Thanks in advance.

Author
2 Mar 2007 5:59 PM
Dick Grier
Hi,

I have examples of several different dialers in my book (see below).
However, this simple-minded  code may get you started:

With MSComm1
    .Settings = "9600, N, 8, 1"
    .RTSEnable = True
    .DTREnable = True
    .CommPort = 3   'or whatever you need
    If .PortOpen = False Then .PortOpen = True
    MSComm1.Output = TextBox1.Text & ";" & vbCr
End With

This code is simple.  It has no "frills" so you will have to modify and
extend it as needed.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.