Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Xmen Real 12-Nov-09 4:49
professional Xmen Real 12-Nov-09 4:49 
GeneralRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Covean12-Nov-09 4:54
Covean12-Nov-09 4:54 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. [modified] Pin
PIEBALDconsult12-Nov-09 4:50
mvePIEBALDconsult12-Nov-09 4:50 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
David Skelly12-Nov-09 5:14
David Skelly12-Nov-09 5:14 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Richard MacCutchan12-Nov-09 5:46
mveRichard MacCutchan12-Nov-09 5:46 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
FEMDEV12-Nov-09 5:51
FEMDEV12-Nov-09 5:51 
GeneralRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
PIEBALDconsult12-Nov-09 7:04
mvePIEBALDconsult12-Nov-09 7:04 
Question.Net gone crazy Pin
Xmen Real 12-Nov-09 4:28
professional Xmen Real 12-Nov-09 4:28 
I wrote a code that is using BackgroundWorker and updating ProgressBar on ProgressChanged. But when I ran it the ProgressBar shown some progress then app got hang for long time. So I thought to check the error and finally reached on a most annoying freaky error. That is the calculation is wrong. And after all I wrote a line for debugging

System.Diagnostics.Debug.WriteLine(bytesReaded + " * 100 / " + totalBytesToRead + " = " + ((bytesReaded * 100) / totalBytesToRead));


and the output will blow the mind of

a snippet
36257792 * 100 / 54444964 = -12
36274176 * 100 / 54444964 = -12
36290560 * 100 / 54444964 = -12
36306944 * 100 / 54444964 = -12
36323328 * 100 / 54444964 = -12
36339712 * 100 / 54444964 = -12
36356096 * 100 / 54444964 = -12
36372480 * 100 / 54444964 = -12
36388864 * 100 / 54444964 = -12
36405248 * 100 / 54444964 = -12
36421632 * 100 / 54444964 = -11
36438016 * 100 / 54444964 = -11
36454400 * 100 / 54444964 = -11
36470784 * 100 / 54444964 = -11
36487168 * 100 / 54444964 = -11


I have exactly same code line with ListView and it works good. But this one aint...any idea ?



TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: .Net gone crazy Pin
Eduard Keilholz12-Nov-09 4:31
Eduard Keilholz12-Nov-09 4:31 
GeneralRe: .Net gone crazy Pin
Xmen Real 12-Nov-09 4:33
professional Xmen Real 12-Nov-09 4:33 
GeneralRe: .Net gone crazy Pin
Eduard Keilholz12-Nov-09 4:42
Eduard Keilholz12-Nov-09 4:42 
GeneralRe: .Net gone crazy Pin
Xmen Real 12-Nov-09 4:43
professional Xmen Real 12-Nov-09 4:43 
GeneralRe: .Net gone crazy Pin
PIEBALDconsult12-Nov-09 5:06
mvePIEBALDconsult12-Nov-09 5:06 
AnswerRe: .Net gone crazy [modified] Pin
PIEBALDconsult12-Nov-09 4:41
mvePIEBALDconsult12-Nov-09 4:41 
GeneralRe: .Net gone crazy Pin
Xmen Real 12-Nov-09 4:47
professional Xmen Real 12-Nov-09 4:47 
GeneralRe: .Net gone crazy [modified] Pin
PIEBALDconsult12-Nov-09 4:51
mvePIEBALDconsult12-Nov-09 4:51 
GeneralRe: .Net gone crazy Pin
Luc Pattyn12-Nov-09 5:03
sitebuilderLuc Pattyn12-Nov-09 5:03 
GeneralRe: .Net gone crazy Pin
PIEBALDconsult12-Nov-09 5:05
mvePIEBALDconsult12-Nov-09 5:05 
GeneralRe: .Net gone crazy Pin
Luc Pattyn12-Nov-09 5:12
sitebuilderLuc Pattyn12-Nov-09 5:12 
GeneralRe: .Net gone crazy Pin
PIEBALDconsult12-Nov-09 5:24
mvePIEBALDconsult12-Nov-09 5:24 
GeneralRe: .Net gone crazy Pin
Luc Pattyn12-Nov-09 5:41
sitebuilderLuc Pattyn12-Nov-09 5:41 
GeneralRe: .Net gone crazy Pin
PIEBALDconsult12-Nov-09 5:44
mvePIEBALDconsult12-Nov-09 5:44 
General.Net did not go crazy today Pin
Luc Pattyn12-Nov-09 6:00
sitebuilderLuc Pattyn12-Nov-09 6:00 
GeneralRe: .Net did not go crazy today Pin
PIEBALDconsult12-Nov-09 6:24
mvePIEBALDconsult12-Nov-09 6:24 
GeneralRe: .Net did not go crazy today Pin
Luc Pattyn12-Nov-09 6:33
sitebuilderLuc Pattyn12-Nov-09 6:33 

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.