I have a question for Christian !!
How i pass the TotalBytes to progress bar maximum?
MainWindow.Bytes.text=FormatBytes(status.bytesComplete)+" of "+FormatBytes(status.TotalBytes)
Above is from example MacfileUtilasync.
I have the progressbar.value inside the event handler (statusChanged),and work perfect,i need only to pass the totalbytes only.
this is the method i use
[code]Dim CellPath, DestPath As String
Dim source, dest As FolderItem
dest = SpecialFolder.Desktop.Child(“test”)
m = New MyFileOperation
MainWindow.pBar.Value = 0
For i As Integer = 0 To MainWindow.Listbox1.ListCount -1
CellPath = MainWindow.Listbox1.Cell(i, 1)
source = GetFolderItem(CellPath, FolderItem.PathTypeNative)
m.CopyObject(source, dest, "", m.kFSFileOperationDefaultOptions, 0.5)
Next[/code]