Using the SMS Component

To use the SMS component, you must:

Example of code generated by the form designer:

private Sybase.UnwiredPlatform.Windows.Device.SMS sms1;
this.sms1 = new Sybase.UnwiredPlatform.Windows.Device.SMS();

The following sample code for the event handler uses the ComposeSmsForm() method to send a SMS. The user can review the message before sending it. The phoneBox1 TextBox control defines the SMS phone number, the smsBox2 TextBox control defines the SMS text.

private void button1_Click(object sender, EventArgs e)
{
   // You can always try to open the send SMS form or send a SMS
   this.sms1.ComposeSmsForm(this.phoneBox1.Text, this.smsBox2.Text);
}