Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
GeneralRe: New form variables passing Pin
Henry Minute10-May-09 6:58
Henry Minute10-May-09 6:58 
GeneralRe: New form variables passing Pin
michaelgr110-May-09 7:04
michaelgr110-May-09 7:04 
GeneralRe: New form variables passing Pin
Henry Minute10-May-09 7:23
Henry Minute10-May-09 7:23 
Questionhow to update the datas present in textbox to gridview control (gui) ,SQL2005 Pin
Mads11510-May-09 0:42
Mads11510-May-09 0:42 
AnswerRe: how to update the datas present in textbox to gridview control (gui) ,SQL2005 Pin
Noctris10-May-09 12:06
Noctris10-May-09 12:06 
QuestionProblem in Printing a persian(or arabic) document Pin
Roshanakak9-May-09 19:18
Roshanakak9-May-09 19:18 
AnswerRe: Problem in Printing a persian(or arabic) document Pin
Ramin Barati19-May-09 8:50
Ramin Barati19-May-09 8:50 
QuestionPreferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 12:22
harold aptroot9-May-09 12:22 
The question is not so much "how to do it" but more "which way is best"
And there are several ways, such as:
* divide by 1024 and keep (a bit of) the fractional part (what is this even good for? just say it in bytes then)
* divide by 1024 and truncate (number of whole KB's)
* divide by 1024 and round (nearest to actual size)
* divide by 1024 and round up (to avoid underestimating the size)

Either there is no standard set for this, or Microsoft ignores it. For example, MSN and Explorer often do not agree on the size of a file, in MSN it would appear to be 1kb smaller. Sounds exactly like a rounding error difference to me.

Which way would you prefer and why?



AnswerRe: Preferred way of bytes to kbytes conversion? Pin
Christian Graus9-May-09 12:28
protectorChristian Graus9-May-09 12:28 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 12:32
harold aptroot9-May-09 12:32 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Christian Graus9-May-09 12:38
protectorChristian Graus9-May-09 12:38 
AnswerRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 12:37
sitebuilderLuc Pattyn9-May-09 12:37 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 12:41
harold aptroot9-May-09 12:41 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 12:59
sitebuilderLuc Pattyn9-May-09 12:59 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 13:06
harold aptroot9-May-09 13:06 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 13:09
sitebuilderLuc Pattyn9-May-09 13:09 
GeneralEnabling Secondry Monitor using C# Pin
jonesyx9-May-09 9:24
jonesyx9-May-09 9:24 
GeneralRe: Enabling Secondry Monitor using C# Pin
Luc Pattyn9-May-09 12:29
sitebuilderLuc Pattyn9-May-09 12:29 
Questiondatagrid copy Pin
michaelgr19-May-09 7:44
michaelgr19-May-09 7:44 
AnswerRe: datagrid copy Pin
Mycroft Holmes9-May-09 14:32
professionalMycroft Holmes9-May-09 14:32 
Questionsend and recieve data with modem Pin
mehdi rahimzade9-May-09 4:31
mehdi rahimzade9-May-09 4:31 
AnswerRe: send and recieve data with modem Pin
Mohammad Dayyan9-May-09 5:42
Mohammad Dayyan9-May-09 5:42 
AnswerRe: send and recieve data with modem Pin
Rajdeep.NET is BACK9-May-09 6:46
Rajdeep.NET is BACK9-May-09 6:46 
GeneralRe: send and recieve data with modem Pin
mehdi rahimzade9-May-09 8:18
mehdi rahimzade9-May-09 8:18 
GeneralRe: send and recieve data with modem PinPopular
scottgp9-May-09 8:46
professionalscottgp9-May-09 8:46 

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.