/ Published in: C#
Expand |
Embed | Plain Text
using System; using System.Linq; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.WindowsMobile.PocketOutlook; using Microsoft.WindowsMobile.Telephony; namespace SmartDeviceProject1 { public partial class Form1 : Form { ContactCollection kontakte; public Form1() { InitializeComponent(); kontakte = os.Contacts.Items; meinKontakt.FirstName = "dieter"; meinKontakt.LastName = "wurst"; meinKontakt.MobileTelephoneNumber = "018930334"; kontakte.Add(meinKontakt); } private void color_Click(object sender, EventArgs e) { this.BackColor = Color.FromArgb(rnd.Next(255), rnd.Next(255), rnd.Next(255)); } private void menuExit_Click(object sender, EventArgs e) { Close(); } private void btnCall_Click(object sender, EventArgs e) { meinHandy.Talk("04543534"); } private void btnSMS_Click(object sender, EventArgs e) { mySms.Body = "das is ne nachtichr"; mySms.Send(); MessageBox.Show("versendet"); } } }
You need to login to post a comment.
