Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: who handles error while writing the source code???. Pin
Dave Kreskowiak2-Apr-10 2:57
mveDave Kreskowiak2-Apr-10 2:57 
GeneralRe: who handles error while writing the source code???. Pin
Lutosław2-Apr-10 3:30
Lutosław2-Apr-10 3:30 
AnswerRe: who handles error while writing the source code???. Pin
Not Active2-Apr-10 2:01
mentorNot Active2-Apr-10 2:01 
AnswerRe: who handles error while writing the source code???. Pin
Pete O'Hanlon2-Apr-10 2:35
mvePete O'Hanlon2-Apr-10 2:35 
AnswerRe: who handles error while writing the source code???. Pin
PIEBALDconsult2-Apr-10 3:44
mvePIEBALDconsult2-Apr-10 3:44 
GeneralRe: who handles error while writing the source code???. Pin
Pete O'Hanlon2-Apr-10 9:54
mvePete O'Hanlon2-Apr-10 9:54 
GeneralRe: who handles error while writing the source code???. Pin
PIEBALDconsult2-Apr-10 10:12
mvePIEBALDconsult2-Apr-10 10:12 
QuestionWhy convert todouble works diferent in phone and PC emulator Pin
Mees Metsast1-Apr-10 21:28
Mees Metsast1-Apr-10 21:28 
Hi
I try debug my work in VS 2008 but PC and HTC WM6 (.NetF.work 3.5 installed) understand numbers diferently. First thing, number format in my region separated with coma 0,1.
What i cant get to work:
Test1 number in the textbox cosfi stored like us format 0.9 (not coma)
<br />
A.Text = System.Convert.ToString(Math.Round(System.Convert.ToDouble(cosfi.Text), 2) * 2);<br />

A.Text in PC test 1.8
In the phone i get error FormatExeption double.parse....
Test2 number in the textbox cosfi stored 0,9
A.Text in PC test 18
In the phone 1,8
<br />
A.Text = System.Convert.ToString(Math.Round(System.Convert.ToDouble(cosfi.Text.Replace(",", ".")), 2) * 2);<br />

With this metod all the same, PC give right answer 1.8 and phone give me error.

Can anyone help me out?
AnswerRe: Why convert todouble works diferent in phone and PC emulator Pin
OriginalGriff1-Apr-10 21:51
mveOriginalGriff1-Apr-10 21:51 
GeneralRe: Why convert todouble works diferent in phone and PC emulator Pin
Mees Metsast2-Apr-10 0:42
Mees Metsast2-Apr-10 0:42 
GeneralRe: Why convert todouble works diferent in phone and PC emulator Pin
Dave Kreskowiak2-Apr-10 2:53
mveDave Kreskowiak2-Apr-10 2:53 
GeneralRe: Why convert todouble works diferent in phone and PC emulator Pin
Mees Metsast2-Apr-10 3:19
Mees Metsast2-Apr-10 3:19 
QuestionDongle License Pin
anishkannan1-Apr-10 20:21
anishkannan1-Apr-10 20:21 
AnswerRe: Dongle License Pin
Eddy Vluggen1-Apr-10 22:40
professionalEddy Vluggen1-Apr-10 22:40 
QuestionIs it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa1-Apr-10 18:25
Nadia Monalisa1-Apr-10 18:25 
AnswerRe: Is it OK to return reference from an USING (DIsposable object) Pin
Abhinav S1-Apr-10 18:39
Abhinav S1-Apr-10 18:39 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa1-Apr-10 18:56
Nadia Monalisa1-Apr-10 18:56 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Abhinav S1-Apr-10 19:27
Abhinav S1-Apr-10 19:27 
AnswerRe: Is it OK to return reference from an USING (DIsposable object) Pin
Dave Kreskowiak1-Apr-10 18:46
mveDave Kreskowiak1-Apr-10 18:46 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa1-Apr-10 18:55
Nadia Monalisa1-Apr-10 18:55 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Luc Pattyn1-Apr-10 19:01
sitebuilderLuc Pattyn1-Apr-10 19:01 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Abhinav S1-Apr-10 19:27
Abhinav S1-Apr-10 19:27 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Dave Kreskowiak2-Apr-10 2:47
mveDave Kreskowiak2-Apr-10 2:47 
AnswerRe: Is it OK to return reference from an USING (DIsposable object) Pin
PIEBALDconsult2-Apr-10 3:41
mvePIEBALDconsult2-Apr-10 3:41 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa2-Apr-10 11:01
Nadia Monalisa2-Apr-10 11:01 

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.