Click here to Skip to main content
16,005,080 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Connect to Internet with Pocket PC Emulator...? Pin
Chandana Subasinghe6-Jun-07 4:10
Chandana Subasinghe6-Jun-07 4:10 
Questionhow can i transfer Pin
deano100006-May-07 2:01
deano100006-May-07 2:01 
QuestionHow can i connect to sql server using PPC Pin
Your Code5-May-07 22:19
Your Code5-May-07 22:19 
AnswerRe: How can i connect to sql server using PPC Pin
ReinerZiegler11-May-07 3:23
ReinerZiegler11-May-07 3:23 
QuestionHighlighting a row in DataGrid - desktop code does not work Pin
RajXXXXX5-May-07 5:42
RajXXXXX5-May-07 5:42 
AnswerRe: Highlighting a row in DataGrid - desktop code does not work Pin
RajXXXXX5-May-07 6:01
RajXXXXX5-May-07 6:01 
Questionerror RDA Pin
SVb.net4-May-07 23:30
SVb.net4-May-07 23:30 
Questionsaving data after the device has been closed Pin
steve_rm4-May-07 0:05
steve_rm4-May-07 0:05 
Hello,

I am using the Compact Framework 2.0

I have an xml document I would like to read and write to.

<br />
Try<br />
'File the xml file<br />
Dim fileName As String = String.Empty<br />
Dim ds As New DataSet<br />
Dim dv As DataView<br />
<br />
Dim path As String<br />
path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)<br />
<br />
'Read in the xml file<br />
<br />
fileName = String.Format("{0}\WebServiceURL.xml", path)<br />
<br />
ds.ReadXml(fileName)<br />
<br />
'Find if a url already exists<br />
dv = New DataView(ds.Tables(0))<br />
<br />
If (dv.Count = 0) Then<br />
'This is the first time the application is running, so input from user<br />
Dim objInputURL As New InputURL()<br />
objInputURL.ShowDialog()<br />
Else 'Set the URL to the current web service location<br />
Dim objUrl As New Globals<br />
objUrl.UrlPath = ds.Tables(0).Rows(0)("url").ToString()<br />
End If<br />
<br />
Catch ex As Exception<br />
MsgBox(ex.Message)<br />
End Try<br />


The above code has a problem, as it cannot find the xml document. I have created this path and put the document inside it "\programFile\PDACodeRedWM5"

I still get the following error file not found

The problem is that the user will enter the URL of a web service. I would like the URL of the web service that they enter to remain, even after the user has completely closed the application.

So when they re-start that can they can use this URL.I have tried using the resources file and the resourceWriter to save the url, but that is read-only. So doesn't have a ResourceWriter.

Is there another method other than using a xml document that can be used to save this.

I am using CF 2.0 and are developing a PDA WM5 application

Does anyone have any suggestions?

Many thanks,

Steve



-- modified at 14:53 Friday 4th May, 2007
QuestionBreakpoint Problem Pin
Blue_Boy3-May-07 22:03
Blue_Boy3-May-07 22:03 
AnswerFound Solution Pin
Blue_Boy3-May-07 22:41
Blue_Boy3-May-07 22:41 
QuestionVideo calling (Video Telephony)in windows mobile 6.0 crossbow Pin
badal_akr3-May-07 17:57
badal_akr3-May-07 17:57 
Question"Save Password" on asp.net mobile pages? Pin
Kir Birger2-May-07 10:44
Kir Birger2-May-07 10:44 
QuestionRadio Button owner draw problem Pin
Shailesh Namjoshi1-May-07 20:13
Shailesh Namjoshi1-May-07 20:13 
QuestionOpening a TCP/IP connection over ActiveSync Pin
GuyM1-May-07 4:49
GuyM1-May-07 4:49 
QuestionFolderBrowserDialog Pin
Tink30-Apr-07 11:40
Tink30-Apr-07 11:40 
QuestionRunning app on windows CE Pin
Tjie Pouw30-Apr-07 1:50
Tjie Pouw30-Apr-07 1:50 
QuestionLink on "Today" Pin
AlexB4727-Apr-07 2:25
AlexB4727-Apr-07 2:25 
AnswerRe: Link on "Today" Pin
Mike Dimmick27-Apr-07 6:44
Mike Dimmick27-Apr-07 6:44 
QuestionStandard input on WinCE Pin
Cedric Moonen25-Apr-07 23:47
Cedric Moonen25-Apr-07 23:47 
QuestionHow to add a shortcut under Start Menu/Settings/Connections tab in Pocket PC Pin
snprani25-Apr-07 0:51
snprani25-Apr-07 0:51 
Questionspeech Recognition in pocket pc Pin
meghu25-Apr-07 0:50
meghu25-Apr-07 0:50 
Questionhow can I read Unique DeviceID on Pocket PC using C# Pin
Blue_Boy24-Apr-07 22:02
Blue_Boy24-Apr-07 22:02 
AnswerRe: how can I read Unique DeviceID on Pocket PC using C# Pin
Christopher Fairbairn22-May-07 15:58
Christopher Fairbairn22-May-07 15:58 
QuestionAttaching text file to email using VB.net Pin
finicio24-Apr-07 5:31
finicio24-Apr-07 5:31 
Questioninstall sql server ce Pin
SVb.net24-Apr-07 3:56
SVb.net24-Apr-07 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.