Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan23-Mar-13 22:18
mveRichard MacCutchan23-Mar-13 22:18 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz24-Mar-13 21:37
mveGerry Schmitz24-Mar-13 21:37 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan24-Mar-13 23:31
mveRichard MacCutchan24-Mar-13 23:31 
AnswerRe: How to Draw Circles on GUI? Pin
Abhinav S22-Mar-13 16:43
Abhinav S22-Mar-13 16:43 
AnswerRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 0:14
cjb11025-Mar-13 0:14 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero25-Mar-13 10:19
Stuck At Zero25-Mar-13 10:19 
GeneralRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 21:37
cjb11025-Mar-13 21:37 
QuestionBest way to read string xml? [Solved] Pin
Boipelo21-Mar-13 7:58
Boipelo21-Mar-13 7:58 
Fisrt let me say I dont have errors and all is working fine, I want to know the best way of doing this... I am consumming a web serving that return string xml...
XML
<pre><api_result><data><credits>33</credits></data><call_result><result>True</result><error /></call_result></api_result>

I want the value "33", have the following and it works fine but wanted to know it's the right way to go...
C#
string sReturnString = WebserviceName.ReturnMyValue(PassingSomeValues);
foreach (char cString in sReturnString.ToCharArray())
{
    if (char.IsDigit(cString))
        sCredits += cString.ToString();
}
return "Balance: sCredits";


I don't want to save it to a file, but just want to dislapy the value. Any recommnedations?
Thanking you in advance.

Addition: ..
Saving it to an xml file makes it easy to read the creadit element value <credits>33; but I dont want to create any files..
I remain joe!


modified 21-Mar-13 15:33pm.

AnswerRe: Best way to read string xml? Pin
Richard Deeming21-Mar-13 8:06
mveRichard Deeming21-Mar-13 8:06 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 8:12
Boipelo21-Mar-13 8:12 
GeneralRe: Best way to read string xml? Pin
Keld Ølykke22-Mar-13 0:27
Keld Ølykke22-Mar-13 0:27 
GeneralRe: Best way to read string xml? Pin
Boipelo22-Mar-13 5:32
Boipelo22-Mar-13 5:32 
AnswerRe: Best way to read string xml? Pin
PIEBALDconsult21-Mar-13 8:49
mvePIEBALDconsult21-Mar-13 8:49 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 9:19
Boipelo21-Mar-13 9:19 
AnswerRe: Best way to read string xml? Pin
jschell21-Mar-13 8:55
jschell21-Mar-13 8:55 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 9:14
Boipelo21-Mar-13 9:14 
GeneralRe: Best way to read string xml? Pin
jschell22-Mar-13 9:57
jschell22-Mar-13 9:57 
Questionform closing event not going to method Pin
MichCl21-Mar-13 4:30
MichCl21-Mar-13 4:30 
AnswerRe: form closing event not going to method Pin
PIEBALDconsult21-Mar-13 5:01
mvePIEBALDconsult21-Mar-13 5:01 
GeneralRe: form closing event not going to method Pin
MichCl21-Mar-13 5:31
MichCl21-Mar-13 5:31 
GeneralRe: form closing event not going to method Pin
PIEBALDconsult21-Mar-13 8:58
mvePIEBALDconsult21-Mar-13 8:58 
AnswerRe: form closing event not going to method Pin
Eddy Vluggen21-Mar-13 5:59
professionalEddy Vluggen21-Mar-13 5:59 
GeneralRe: form closing event not going to method Pin
MichCl21-Mar-13 8:02
MichCl21-Mar-13 8:02 
AnswerRe: form closing event not going to method Pin
Eddy Vluggen21-Mar-13 9:04
professionalEddy Vluggen21-Mar-13 9:04 
AnswerRe: form closing event not going to method Pin
Pete O'Hanlon21-Mar-13 9:07
mvePete O'Hanlon21-Mar-13 9:07 

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.