Click here to Skip to main content
16,007,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCopy into Clipboard - .GIF Pin
john john mackey3-Feb-06 12:08
john john mackey3-Feb-06 12:08 
AnswerRe: Copy into Clipboard - .GIF Pin
Jason McBurney3-Feb-06 12:58
Jason McBurney3-Feb-06 12:58 
GeneralRe: Copy into Clipboard - .GIF Pin
john john mackey3-Feb-06 13:22
john john mackey3-Feb-06 13:22 
QuestionA table control for vb6 Pin
ns3-Feb-06 9:40
ns3-Feb-06 9:40 
AnswerRe: A table control for vb6 Pin
Jason McBurney3-Feb-06 13:02
Jason McBurney3-Feb-06 13:02 
QuestionBindingSource Wont Update Pin
AlexeiXX33-Feb-06 9:20
AlexeiXX33-Feb-06 9:20 
QuestionAnother FileSystemObject Question Pin
Quecumber2563-Feb-06 8:41
Quecumber2563-Feb-06 8:41 
AnswerRe: Another FileSystemObject Question Pin
Dave Kreskowiak3-Feb-06 9:12
mveDave Kreskowiak3-Feb-06 9:12 
Since the CopyFile method you're using to do the work doesn't (and will never) report back any progress, you can't really make a ProgressBar work. You'll never know how much progress has been made or how much is left.

There are several ways around this, none of them "simple".

1) Implement your own copy function. You'll have to get the file size, open the source file for Shared Read, read the contents in chunks, write them to the new file, and after every chunk, fire an event that notifies about the progress.

2) Use the Shell's File Copy function. This will show the normal copy operation dialog that you get when you drag and drop files in Explorer. The downside to using this is the user can cancel the copy. The upside is it does it's own ProgressBar.

3) Implement a ProgressBar that doesn't progress, but instead "spins". There is no 100%, but there is at least something to show that something is going on. See this[^] article on MSDN for an example.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Another FileSystemObject Question Pin
Quecumber2563-Feb-06 9:29
Quecumber2563-Feb-06 9:29 
GeneralRe: Another FileSystemObject Question Pin
Quecumber2563-Feb-06 9:42
Quecumber2563-Feb-06 9:42 
GeneralRe: Another FileSystemObject Question Pin
Dave Kreskowiak3-Feb-06 9:54
mveDave Kreskowiak3-Feb-06 9:54 
GeneralRe: Another FileSystemObject Question Pin
Quecumber2563-Feb-06 10:00
Quecumber2563-Feb-06 10:00 
GeneralRe: Another FileSystemObject Question Pin
Dave Kreskowiak3-Feb-06 10:06
mveDave Kreskowiak3-Feb-06 10:06 
GeneralRe: Another FileSystemObject Question Pin
Dave Kreskowiak3-Feb-06 10:04
mveDave Kreskowiak3-Feb-06 10:04 
QuestionHelp for explained error message! Pin
JUNEYT3-Feb-06 6:31
JUNEYT3-Feb-06 6:31 
AnswerRe: Help for explained error message! Pin
Dave Kreskowiak3-Feb-06 7:32
mveDave Kreskowiak3-Feb-06 7:32 
QuestionVB.Net Union Type Pin
Polymorpher3-Feb-06 6:30
Polymorpher3-Feb-06 6:30 
AnswerRe: VB.Net Union Type Pin
Dave Kreskowiak3-Feb-06 7:28
mveDave Kreskowiak3-Feb-06 7:28 
GeneralRe: VB.Net Union Type Pin
Polymorpher3-Feb-06 15:11
Polymorpher3-Feb-06 15:11 
QuestionSerial Port Communication Pin
Dr_Lomax3-Feb-06 6:18
Dr_Lomax3-Feb-06 6:18 
QuestionFileSystemObject not working Pin
Quecumber2563-Feb-06 6:02
Quecumber2563-Feb-06 6:02 
AnswerRe: FileSystemObject not working Pin
Guffa3-Feb-06 6:19
Guffa3-Feb-06 6:19 
GeneralRe: FileSystemObject not working Pin
Quecumber2563-Feb-06 6:59
Quecumber2563-Feb-06 6:59 
GeneralRe: FileSystemObject not working Pin
Dave Kreskowiak3-Feb-06 7:20
mveDave Kreskowiak3-Feb-06 7:20 
GeneralRe: FileSystemObject not working Pin
Quecumber2563-Feb-06 8:50
Quecumber2563-Feb-06 8:50 

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.