Article View: pl.comp.lang.vbasic
Article #104729Re: VB.NET 2010 - pasek postepu.
From: Jacek
Date: Fri, 10 Dec 2010 10:48
Date: Fri, 10 Dec 2010 10:48
29 lines
1960 bytes
1960 bytes
Dnia Fri, 10 Dec 2010 08:59:36 +0000, InDesign Scripts napisał(a): >> For Each fName As String In Directory.GetFiles(sourcePath) >> If File.Exists(fName) Then >> Dim dFile As String = String.Empty >> dFile = Path.GetFileName(fName) >> Dim dFilePath As String = String.Empty >> dFilePath = DestinationPath + dFile >> File.Copy(fName, dFilePath, True) >> ProgressBar1.Value = y >> ProgressBar1.Refresh() >> y = y + x >> End If >> Next >> >> Sprawa polega na tym, ze nie odswieza sie pasek postepu. >> Robilem juz rozne cuda i nic. >> Samo powyzsze kopiowanie trwa okolo 5 min, wiec przydal by sie dzialajacy >> progressbar, prawda? >> Jak to ugryzc? > > a gdzie ustawiasz NOWĄ wartość "x"? > bo "x" to chyba ilość aktualnie skopiowanych danych/plików/etc.? > > robin X obliczam wczesniej dzielac 100 przez ilosc plikow (pliki sa podobej wielkosci). Daje nam to srednia 1 pliku.
Technical Details
Message-ID:
<1w3cipinc10yj.czzlyv5lttz4$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<1wp0hao771gwp.mm72xd3qfyvt$.dlg@40tude.net> <idsq5o$eto$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Jacek <ala@ola.pl> Newsgroups: pl.comp.lang.vbasic Subject: Re: VB.NET 2010 - pasek postepu. Date: Fri, 10 Dec 2010 11:48:49 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 29 Message-ID: <1w3cipinc10yj.czzlyv5lttz4$.dlg@40tude.net> References: <1wp0hao771gwp.mm72xd3qfyvt$.dlg@40tude.net> <idsq5o$eto$1@inews.gazeta.pl> NNTP-Posting-Host: 77-253-57-159.adsl.inetia.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1291978126 8716 77.253.57.159 (10 Dec 2010 10:48:46 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Fri, 10 Dec 2010 10:48:46 +0000 (UTC) X-User: sha-lom X-Antivirus: avast! (VPS 101209-1, 2010-12-09), Outbound message X-Antivirus-Status: Clean User-Agent: 40tude_Dialog/2.0.15.1pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit