Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: mysql connect + retrieving record Pin
Blue_Boy2-Jun-09 23:52
Blue_Boy2-Jun-09 23:52 
AnswerRe: mysql connect + retrieving record Pin
Moreno Airoldi2-Jun-09 23:58
Moreno Airoldi2-Jun-09 23:58 
GeneralRe: mysql connect + retrieving record Pin
benjamin yap3-Jun-09 0:01
benjamin yap3-Jun-09 0:01 
GeneralRe: mysql connect + retrieving record Pin
benjamin yap3-Jun-09 0:07
benjamin yap3-Jun-09 0:07 
GeneralRe: mysql connect + retrieving record Pin
Moreno Airoldi3-Jun-09 0:33
Moreno Airoldi3-Jun-09 0:33 
QuestionControlling Navigation in IE using c# Pin
svt gdwl2-Jun-09 23:38
svt gdwl2-Jun-09 23:38 
AnswerRe: Controlling Navigation in IE using c# Pin
Pete O'Hanlon2-Jun-09 23:54
mvePete O'Hanlon2-Jun-09 23:54 
QuestionCopying a file with progress Pin
musefan2-Jun-09 23:31
musefan2-Jun-09 23:31 
Hi all,

Within my application I need the ability to copy a file. The thing is I also want to use a progress bar to show how much of the file is uploaded/total etc.

So this rules out the use of System.IO.File.Copy() - Of course, I know, I will use a stream and write a chuck of data at a time and then report progress in-between each chuck... Yeah, that seems to work great...

PROBLEM: I used this method to copy a Word Document (Office 2007). The copy was fine, but the problem is, when I try to open the document in Word its says something about the file being corrupt, would you like to restore the file? (which succeeds, but is not good enough)

If I use File.Copy() this problem does not happen.

So, question is, how do I create a proper copy of a file while maintaining the ability to notify the user of the progress?

Thanks for any help

Life goes very fast. Tomorrow, today is already yesterday.

AnswerRe: Copying a file with progress Pin
Pete O'Hanlon2-Jun-09 23:51
mvePete O'Hanlon2-Jun-09 23:51 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 0:30
musefan3-Jun-09 0:30 
AnswerRe: Copying a file with progress Pin
Xmen Real 3-Jun-09 0:07
professional Xmen Real 3-Jun-09 0:07 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 0:32
musefan3-Jun-09 0:32 
GeneralRe: Copying a file with progress Pin
Xmen Real 3-Jun-09 2:36
professional Xmen Real 3-Jun-09 2:36 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 3:10
musefan3-Jun-09 3:10 
AnswerRe: Copying a file with progress Pin
harold aptroot3-Jun-09 0:27
harold aptroot3-Jun-09 0:27 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 0:42
musefan3-Jun-09 0:42 
AnswerRe: Copying a file with progress [modified] Pin
Alan N3-Jun-09 0:52
Alan N3-Jun-09 0:52 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 0:55
musefan3-Jun-09 0:55 
AnswerRe: Copying a file with progress [modified] Pin
harold aptroot3-Jun-09 0:55
harold aptroot3-Jun-09 0:55 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 1:05
musefan3-Jun-09 1:05 
GeneralRe: Copying a file with progress Pin
Alan N3-Jun-09 1:05
Alan N3-Jun-09 1:05 
GeneralRe: Copying a file with progress Pin
musefan3-Jun-09 1:07
musefan3-Jun-09 1:07 
QuestionHow to Repeat execution of AT commands to read SMS from Mobile? Pin
Md. Ali Naser Khan2-Jun-09 23:24
Md. Ali Naser Khan2-Jun-09 23:24 
QuestionHow to disable back button on IE? Pin
svt gdwl2-Jun-09 23:17
svt gdwl2-Jun-09 23:17 
AnswerRe: How to disable back button on IE? Pin
Blue_Boy2-Jun-09 23:25
Blue_Boy2-Jun-09 23:25 

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.