Is there an efficient way of copying a file and at the same time updating a
progress bar with short intervals to see how much is still to copy of the
file? Like some FTP programs have for instance. 4 2647
I have done someting like that, and the best way I found, whast to, use a
timer to check the state of the copy, the copy was in a thread, and work
very well, other way is, in the same thread signaling and event, about the
progres.
If you are in the framework 2.0 there is a class that handles much of this,
for coping files, from a remote machine, to the local one.
Regards,
Bela Istok
"Joachim" <Jo*****@discus sions.microsoft .comwrote in message
news:FC******** *************** ***********@mic rosoft.com...
Is there an efficient way of copying a file and at the same time updating
a
progress bar with short intervals to see how much is still to copy of the
file? Like some FTP programs have for instance.
Thank you Bela,
If you are in the framework 2.0 there is a class that handles much of this,
for coping files, from a remote machine, to the local one.
Which class do you mean?
Regards,
Joachim
"Bela Istok" wrote:
I have done someting like that, and the best way I found, whast to, use a
timer to check the state of the copy, the copy was in a thread, and work
very well, other way is, in the same thread signaling and event, about the
progres.
If you are in the framework 2.0 there is a class that handles much of this,
for coping files, from a remote machine, to the local one.
Regards,
Bela Istok
"Joachim" <Jo*****@discus sions.microsoft .comwrote in message
news:FC******** *************** ***********@mic rosoft.com...
Is there an efficient way of copying a file and at the same time updating
a
progress bar with short intervals to see how much is still to copy of the
file? Like some FTP programs have for instance.
System.Net.WebC lient
"Joachim" <Jo*****@discus sions.microsoft .comwrote in message
news:A0******** *************** ***********@mic rosoft.com...
Thank you Bela,
>If you are in the framework 2.0 there is a class that handles much of this, for coping files, from a remote machine, to the local one.
Which class do you mean?
Regards,
Joachim
"Bela Istok" wrote:
>I have done someting like that, and the best way I found, whast to, use a timer to check the state of the copy, the copy was in a thread, and work very well, other way is, in the same thread signaling and event, about the progres.
If you are in the framework 2.0 there is a class that handles much of this, for coping files, from a remote machine, to the local one.
Regards,
Bela Istok "Joachim" <Jo*****@discus sions.microsoft .comwrote in message news:FC******* *************** ************@mi crosoft.com...
Is there an efficient way of copying a file and at the same time
updating
a
progress bar with short intervals to see how much is still to copy of
the
file? Like some FTP programs have for instance.
You can also use a background worker component that's more efficient than a
timer since it does not tie up the main UI thread. You can set the progress
method and the actual method that does the work. The work method can then
update the progress percentage in the event args that gets passed in and the
progress method will get an asynchronous notification.
For more info, see http://msdn2.microsoft.com/en-us/library/8xs8549b.aspx
--
Good luck!
Shailen Sukul
Architect
(BSc MCTS, MCSD.Net MCSD MCAD)
Ashlen Consulting Service P/L
( http://www.ashlen.net.au)
"Joachim" wrote:
Thank you Bela,
If you are in the framework 2.0 there is a class that handles much of this,
for coping files, from a remote machine, to the local one.
Which class do you mean?
Regards,
Joachim
"Bela Istok" wrote:
I have done someting like that, and the best way I found, whast to, use a
timer to check the state of the copy, the copy was in a thread, and work
very well, other way is, in the same thread signaling and event, about the
progres.
If you are in the framework 2.0 there is a class that handles much of this,
for coping files, from a remote machine, to the local one.
Regards,
Bela Istok
"Joachim" <Jo*****@discus sions.microsoft .comwrote in message
news:FC******** *************** ***********@mic rosoft.com...
Is there an efficient way of copying a file and at the same time updating
a
progress bar with short intervals to see how much is still to copy of the
file? Like some FTP programs have for instance.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul |
last post by:
i have been working with vb6 for a while but never had the pleasure of using
progress bars. That is until now, one of the programs i have written has
just been modified so that large csv files of 100,000+ lines can be imported
into a database.
the import works fine but the progress bar feature is not working correctly.
The progress bar is set to a max value of the number of records in the csv
file, the records are then imported and the...
|
by: bob |
last post by:
Hello,
I want to show progress to the user while some method is running so I
thought I'd use a progress bar.
But I don't see how I can do this without writing GUI code in the
model?
In Smalltalk I would fire of notification exceptions that a progress
bar would catch, increment progress, and then allow to continue (or no
|
by: Brian Birtle |
last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible
to build a file upload progress meter using ASP.NET" **** First person
to prove me wrong gets "All Time .NET Programming GOD" listing in my
address book and (optionally) their name listed on my "news" page of
my birtle.com website (listed as "Jane Smith is a Programming GOD")
for at least a month. Why not take a moment to read more and possibly
boost your ego to all time...
|
by: Kenneth Keeley |
last post by:
Hi,
I have a page that uploads files to my server and I wish to display a
"Please wait while uploading" page to the user while the file is uploading.
I have been able to redirect the user once the file is finished uploading
but am not sure how to do it while file is uploading.
Some sample code would be welcomed with open arms.
Thank You.
|
by: brother52 |
last post by:
I am using My.Computer.FileSystem.CopyFile() to copy a bunch of files from
one directoy to another, and would like to display a progress bar on the
screen for each file being copied. Is this possible?
| |
by: WhiteWizard |
last post by:
I guess it's my turn to ASK a question ;)
Briefly my problem: I am developing a Windows app that has several User
Controls. On one of these controls, I am copying/processing some rather
large binary files, so have created a second thread to do the processing.
This thread is set to be the LOWEST priority. So far so good with all that.
HOWEVER, I am trying to provide some feedback to the user (the bane of our
existence!) via a progress...
|
by: Michael Jervis |
last post by:
Hi,
I'm writing a little application that scans a large number of media
files for processing.
The main application currently uses a backgroundworkerprocess to
perform the scan. Each media file has meta data extracted and is added
to one of a range of lists (pseudo-queues) for later processing. This
is all fine. But, I want to provide more feedback to the end user as to
progress as the process takes a considerable time.
|
by: half.italian |
last post by:
I'm making a small interface for copying large groups of files around a
filesystem. I have a progressbar that counts the items in the
destination, and increments as each new file is copied over. It
compares this number to the number of files in the source and updates
accordingly.
All is fine and dandy with an average amount of files (<20000), but
when the amount of files to be copied becomes large, I end up getting
"Maximum recurssion...
|
by: ADezii |
last post by:
Many Access Users fail to realize that it has a built-in Progress Meter that can display the relative completion percentage of various processes. It is fairly limited, but nonetheless, does provide visual feedback indicating the percent completion of a certain task. The Meter itself, when activated, rests on the left hand corner of the Status Bar and is controlled via the SysCmd() Method. It is straightforward, simple to use, and involves only...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |