1

アプリケーションで PC からモバイルに SMS を送信するために way2sms サードパーティ コントロールを使用しています。これが私のコードです。

SendSms sms = new SendSms();
string status=sms.send(txtID.Text, txtPass.Text, txtMessage.Text, txtMN.Text);
if (status == "1")
    MessageBox.Show("Sent successfully", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
else if (status == "2")
    MessageBox.Show("No Internet Connection", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
else
    MessageBox.Show("ID or Password is not correct", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);`  

No Internet Connectionというエラー「2」が表示されるたびに。

私を助けてくれる人はいますか?

4

0 に答える 0