0

我写了这段代码来接收短信。但是如果一些短信一起接收,它不能显示所有的。我怎样才能阅读所有的短信?

 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 ;
        }
4

1 回答 1

0

You are using the SMS AT Communication Library from sourceforge

See the MessageStore property of your oGsmModem object for all messages. Hint: Use Refresh to reload from modem.

于 2013-01-09T00:14:07.300 回答