M
Mustafa Rabie
Hi All,
the following article talks about how to get info from the SIM card. I
downloaded the sample, used the Phone.cs in an application, and everytime i
try to access the card i get "Can't read the service provider"
here's the code i am using:
using Microsoft.Wireless;
//application inits etc
private void button1_Click(object sender, System.EventArgs e)
{
string szOwnerNumber = "";
try
{
szOwnerNumber =
Microsoft.Wireless.Sim.GetServiceProvider();//Microsoft.Wireless.Sim.GetPhon
eNumber().ToString();
textBox1.Text = szOwnerNumber;
}
catch (Exception exp)
{
textBox1.Text = exp.Message;
}
}
is there something that i am missing or something?
I am using T-Mobile XDA-I upgraded to Windows Mobile 2003 (T-Mobile build)
thanks
mustafa
the following article talks about how to get info from the SIM card. I
downloaded the sample, used the Phone.cs in an application, and everytime i
try to access the card i get "Can't read the service provider"
here's the code i am using:
using Microsoft.Wireless;
//application inits etc
private void button1_Click(object sender, System.EventArgs e)
{
string szOwnerNumber = "";
try
{
szOwnerNumber =
Microsoft.Wireless.Sim.GetServiceProvider();//Microsoft.Wireless.Sim.GetPhon
eNumber().ToString();
textBox1.Text = szOwnerNumber;
}
catch (Exception exp)
{
textBox1.Text = exp.Message;
}
}
is there something that i am missing or something?
I am using T-Mobile XDA-I upgraded to Windows Mobile 2003 (T-Mobile build)
thanks
mustafa