I have a UserControl fixed the question of kevin :<br>
<br>
' Update the status progress bar and label.<br>
Private Sub FileCopier1_Progress(ByVal total_bytes As Long, ByVal bytes_copied As Long)<br>
' See if we know how many bytes we will copy.<br>
If total_bytes = 0 Then<br>
' We don't know how many bytes we will copy.<br>
' Display the caption.<br>
lblStatus.Caption = Format$(bytes_copied) & _<br>
" bytes copied"<br>
<br>
' Hide the progress bar.<br>
prgStatus.Visible = False<br>
Else<br>
' We do know how many bytes we will copy.<br>
' Display the caption.<br>
lblStatus.Caption = Format$(bytes_copied) & _<br>
" of " & Format$(total_bytes) & " bytes copied"<br>
<br>
' If this is the first status update,<br>
' set the progress bar's Min and Max<br>
' properties.<br>
If Not prgStatus.Visible Then<br>
prgStatus.Min = 0<br>
prgStatus.Max = total_bytes<br>
End If<br>
<br>
' Update the progress bar.<br>
prgStatus.Value = bytes_copied<br>
If Not prgStatus.Visible Then prgStatus.Visible = True<br>
End If<br>
<br>
' Make sure the status label is visible.<br>
If Not lblStatus.Visible Then lblStatus.Visible = True<br>
End Sub<br>
<p>Eric De Decker<br><a href=mailto:vbg.be@vbgroup.nl>vbg.be@vbgroup.nl</a><br><a href=
Basic Center</a><br>