Using the Phone Component

To use the phone component:

Example of code generated by the form designer:

private Sybase.UnwiredPlatform.Windows.Device.Phone phone1;
this.phone1 = new Sybase.UnwiredPlatform.Windows.Device.Phone();

The following sample code for the event handler uses the Call() method to make a phone call. The phoneBox1 TextBox control defines the phone number.

private void button1_Click(object sender, EventArgs e)
{
   // You can always try to call
   this.phone1.Call(this.phoneBox1.Text, false);
}