我写了这段代码来接收短信。但是如果一些短信一起接收,它不能显示所有的。我怎样才能阅读所有的短信?
private GSMModem oGsmModem
{
get { return withEventsField_oGsmModem; }
set
{
if (withEventsField_oGsmModem != null)
{
withEventsField_oGsmModem.NewMessageReceived -= oGsmModem_NewMessageReceived;
}
withEventsField_oGsmModem = value;
if (withEventsField_oGsmModem != null)
{
withEventsField_oGsmModem.NewMessageReceived += oGsmModem_NewMessageReceived;
}
}
}
private void oGsmModem_NewMessageReceived(ATSMS.NewMessageReceivedEventArgs e)
{
txtMsg.Text = "Message from " + e.MSISDN + ". Message - " + e.TextMessage ;
}