Click here to Skip to main content
15,905,682 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralAccess DB and VB6 Pin
Anonymous2-Apr-05 18:22
Anonymous2-Apr-05 18:22 
GeneralGenerating Barcodes from VB.Net Pin
ljc772-Apr-05 5:02
ljc772-Apr-05 5:02 
GeneralRe: Generating Barcodes from VB.Net Pin
Ray Cassick2-Apr-05 5:29
Ray Cassick2-Apr-05 5:29 
GeneralRe: Generating Barcodes from VB.Net Pin
j45mw3-Apr-05 19:49
j45mw3-Apr-05 19:49 
GeneralRe: Generating Barcodes from VB.Net Pin
Anonymous5-Apr-05 10:45
Anonymous5-Apr-05 10:45 
Generalfont names in combo box Pin
sam_pune2-Apr-05 4:20
sam_pune2-Apr-05 4:20 
GeneralRe: font names in combo box Pin
Dave Kreskowiak3-Apr-05 4:32
mveDave Kreskowiak3-Apr-05 4:32 
GeneralFoldercopyprogress shown in progressbar Pin
Wassilli2-Apr-05 2:47
Wassilli2-Apr-05 2:47 
Hello

I'am trying to copy a folder to another drive. I'am doing this with the FileSystemObject fso. Now, I want that the progress of the copying is shown in a Progressbar. All that I get is that first the folder is copied and then the progressbar is shown. I'd like to have it at the same time.
Please excuse my English. I'm not used to speak it very often, but I can understand most of it.
Any help would be greatly appreciated.
Confused | :confused:

Here is the code for copying the folder:

<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        Dim md As String<br />
        Dim di As String<br />
        md = "C:\Eigene Dateien"<br />
        di = "Laufwerk \i:"<br />
<br />
        timer1.enabled = true<br />
<br />
        Label1.Text = "Achtung: Datentranfer läuft. Bitte warten."<br />
        Label1.Refresh()<br />
<br />
        Dateien_Kopieren()<br />
<br />
        Label1.Text = "Kopiervorgang ist abgeschlossen"<br />
        MessageBox.Show("Der Ordner " & md & " ist nach " & di & " kopiert.")<br />
<br />
    End Sub<br />
<br />
    Private Sub Dateien_Kopieren()<br />
        Dim fso As FileSystemObject<br />
<br />
        fso = CreateObject("Scripting.FileSystemObject")<br />
<br />
        fso.DeleteFolder("i:\Eigene Dateien", True)<br />
<br />
        fso.CopyFolder("C:\Dokumente und Einstellungen\Christoph Schmid\Eigene Dateien", "i:\")<br />
<br />
    End Sub<br />


Other controls on the form are a progressbar and a timer.

<br />
Private Sub Timer1_Tick()<br />
progressbar1.value = progressbar1.value + 1<br />
End Sub<br />

GeneralRe: Foldercopyprogress shown in progressbar Pin
skrtbh2-Apr-05 4:54
skrtbh2-Apr-05 4:54 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Wassilli2-Apr-05 21:24
Wassilli2-Apr-05 21:24 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Dave Kreskowiak3-Apr-05 4:21
mveDave Kreskowiak3-Apr-05 4:21 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Wassilli3-Apr-05 4:57
Wassilli3-Apr-05 4:57 
GeneralError Exception Message when I close the app. Pin
viettho1-Apr-05 13:48
viettho1-Apr-05 13:48 
GeneralSetup a form for printing (VB6) Pin
PalleJensen1-Apr-05 13:15
PalleJensen1-Apr-05 13:15 
GeneralObject reference not set to an instance of an object Pin
VB.NET Newbie1-Apr-05 11:21
sussVB.NET Newbie1-Apr-05 11:21 
GeneralRe: Object reference not set to an instance of an object Pin
Dave Kreskowiak1-Apr-05 13:42
mveDave Kreskowiak1-Apr-05 13:42 
GeneralRe: Object reference not set to an instance of an object Pin
VB .NET Newbie1-Apr-05 15:26
sussVB .NET Newbie1-Apr-05 15:26 
GeneralCapslock status Pin
Mr Dabbah1-Apr-05 9:12
Mr Dabbah1-Apr-05 9:12 
GeneralRe: Capslock status Pin
Anonymous1-Apr-05 18:41
Anonymous1-Apr-05 18:41 
QuestionDrive mount/dismount notification ? Pin
MrBean1-Apr-05 5:03
MrBean1-Apr-05 5:03 
AnswerRe: Drive mount/dismount notification ? Pin
Anonymous3-Apr-05 9:34
Anonymous3-Apr-05 9:34 
AnswerRe: Drive mount/dismount notification ? Pin
Anonymous3-Apr-05 9:59
Anonymous3-Apr-05 9:59 
GeneralAccessor Properties in Forms Pin
maxmanzero1-Apr-05 4:58
maxmanzero1-Apr-05 4:58 
GeneralRe: Accessor Properties in Forms Pin
carlos_rocha3-Apr-05 23:08
carlos_rocha3-Apr-05 23:08 
GeneralIMAP Client Pin
M4nj_j1-Apr-05 4:37
M4nj_j1-Apr-05 4:37 

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.