Overview
  Next

The Phone library allows you to take advantage of phone enabled devices.
It includes the Call method which initiates phone calls and several phone related events.
This library is only supported on WM5.0 and WM6.0 phone enabled devices.
WM5.0 devices should install .Net CF 2.0 and follow these instructions:
http://www.basic4ppc.com/netcf2.html.
For older devices you could use the PhoneLib library which was created by a Basic4ppc user and is available for download on the forum.

Example:
'Phone is a Phone object.
'First create a form and add three TextBoxes.
Sub Globals

End Sub

Sub App_Start
      Form1.Show
      Phone.New1("Form1")
End Sub

Sub phone_IncomingCall
      TextBox2.Text = phone.IncomingNumber
End Sub

Sub phone_TalkingStart
      textbox1.Text = phone.CurrentCallNumber
      textbox3.Text = "Call start"
End Sub

Sub phone_TalkingEnd
      textBox3.Text = "Call ended"
End Sub