The NewIncomingCallEventArgs class prepares data for the
NewIncomingCall event.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
Inherits: System.EventArgs
| Property | Description | Type |
| CallerID | Phone number of the caller | String |
| Visual Basic |
| Public Class MyClass Public WithEvents objSMS As New mCore.SMS Public Sub New() Try SetCommParameters() objSMS.IncomingCallIndication = True Catch ex As mCore.GeneralException MsgBox(ex.Message) End Try End Sub 'Incoming Call Event Handling 'A message box will pop-up whenever 'a new incoming call is received Private Sub objSMS_NewIncomingCall(ByVal sender As Object, _ ByVal e As mCore.NewIncomingCallEventArgs) _ Handles objSMS.NewIncomingCall MsgBox("Incoming call from: " & e.CallerID, _ MsgBoxStyle.Information, "Incoming Call") End Sub Public Sub SetCommParameters() Try objSMS.Port = "COM1" objSMS.BaudRate = mCore.BaudRate.BaudRate_19200 objSMS.DataBits = mCore.DataBits.Eight objSMS.StopBits = mCore.StopBits.One objSMS.Parity = mCore.Parity.None objSMS.FlowControl = mCore.FlowControl.RTS_CTS Catch ex As mCore.GeneralException MsgBox(ex.Message) Catch ex As Exception End Try End Function End Class |
| C# |
class MyClass { catch
(mCore.GeneralException e) |
mCore.SMS.NewIncomingCall Event
mCore.SMS.NewIncomingCallEventHandler Delegate