Question : Problem: mobile 6.0 - Dialing a phone number in code

I know this is probably simple, but could someone please show me how to dial a phone number in code on a windows mobile device. I've got a simple project with a button, when that button is clicked I want a specific phone number to be dialed.
Thanks
Danny

Answer : Problem: mobile 6.0 - Dialing a phone number in code

yes, that's correct, something like that (I assume you've added the reference to Microsoft.WindowsMobile.Telephony)

Imports Microsoft.WindowsMobile.Telephony

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim myPhone As New Phone()
        ' I've added a textbox to the form to collect phone number
        myPhone.Talk(TextBox1.Text)
    End Sub
End Class
Random Solutions  
 
programming4us programming4us