473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Using mobile internet connection on WinMo6

Hi Everyone,

I'm trying to make a Windows Mobile (WinMo) application in C# to help all those affected by Alzheimers and similar conditions.

Part of it requires that an SMS text be sent using the number that is stored in a text file on my website.

I have got it to send the SMS text message, however when the program runs on the WinMo device, without "active sync" supplying internet, it crashes because it can't find internet, even though the phone has a constant data connection

The code I have so far is...
Expand|Select|Wrap|Line Numbers
  1. private void btn_send_Click(object sender, EventArgs e)
  2. {
  3. btn_send.Enabled = false;
  4.  
  5. int i = 0;
  6. string fileline;
  7. HttpWebRequest reqFP = (HttpWebRequest)HttpWebRequest.Create("http://jamesgeddes.com/tracknan/phone.txt");
  8. HttpWebResponse rspFP = (HttpWebResponse)reqFP.GetResponse();
  9. Stream st = rspFP.GetResponseStream();
  10. using (StreamReader sr = new StreamReader(st))
  11.             {
  12.                 fileline = sr.ReadLine();
  13.             }
  14. SmsMessage x = new SmsMessage("fileline", "DONE");
  15. for (i = 0; i <= 10; i++)
  16.             {
  17.                 label2.Text = Convert.ToString(i);
  18.                 x = new SmsMessage("fileline", Convert.ToString(i));
  19.                 x.Send();
  20.                 btn_send.Enabled = true;
  21.             }
  22. }
So, how do I get it to use the internet?

Any help would be most appreciated, as it will help all those affected by Alzheimer's and related illnesses.

Thank you!

James
Feb 21 '10 #1
0 1374

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Cliff Wells | last post by:
Hi, I'm writing an application that needs to know if an Internet connection is available. Basically, I want to have something similar to what a lot of email clients have, where the app can work...
6
by: Matt Hawley | last post by:
I'm facing a problem where I need to verify that my windows forms application has access to the internet before it can do anything. Currently, the only way I can think of is by creating a...
4
by: Peter Flynn | last post by:
I'm having trouble finding example code to detect the presence of an Internet connection. It doesn't seem to be a very frequently asked question, as all I need is the answer yes or no (is the user...
3
by: Jonny | last post by:
Hi, Please could you tell me how to check for an internet connection in C. I'm using Windows 2000. Many Thanks, Jonny
2
by: melissa_benkyo | last post by:
hello all, I'm trying to install the mobile internet toolkit 1.0. but it says setup has detected an incompatible version of the microsoft .net framework. I'm using ms .net 2003 edition on xp...
0
by: Arthur | last post by:
Hi, I am trying to write a windows service in VC++.NET 2003, the task of this server is to detect the kind of internet connection and if there is a connection send some file and do something. ...
3
by: danielmcinerney | last post by:
i am trying to set up internet connection sharing between a vista machine (host) and an XP machine (client). i have followed guidelines from various pages on the internet but i still cannot get it...
6
by: =?Utf-8?B?QnNtZW5nZW4=?= | last post by:
I am trying to make sure that the local connection is up. I have presently been using the NetworkChange.NetworkAvailabilityChanged Event for this. Is there a better way to do this? Also, I...
1
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.