تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[عنوان معدل] مساعدة في اداة Progress Bar
#1
سلام عليكم ورحمة الله وبركاته
ارجوا المسلعدة فى ربط عملية النسخ بال progres pare
ومرفق لكم رابط التطبيق لفشلى فى رفع الملف
http://vb4arab.com/vb/showthread.php?t=108958
وبراجاء المساعدة فى عملية الفع هل هناك مشكله
دمت فى احسن صحة وفقكم الله
}}}
تم الشكر بواسطة:
#2
progressbar
http://social.msdn.microsoft.com/Forums/...0156f8c51/
}}}
تم الشكر بواسطة:
#3
اخي اعطيك بعض النتائج
تنيجة 1
PHP كود :
Dim sr As New FileStream("[Input-file]"IO.FileMode.Open)        Dim sw As New FileStream("[Output-file]"IO.FileMode.Create)        Dim len As Long sr.Length 1        Dim buffer(1024) As Byte        Dim bytesread As Integer
        
While sr.Position len            bytesread = (sr.Read(buffer01024))            sw.Write(buffer0bytesread)            mainscreen.FileProgress.Value CInt(sr.Position len 100)            Application.DoEvents()        End While
        
sw.Flush()        sw.Close()        sr.Close() 

نتيجة 2

PHP كود :
Sub copyfilewithprogress()  Dim path As String Application.StartupPath "\"  Dim mediafile As String = "Amy Diamond What's in it for me.mp3"  Dim fi As New IO.FileInfo(mediafile)  Dim sr As New IO.FileStream(path & mediafile, IO.FileMode.Open) 'source file  Dim sw As New IO.FileStream(path "copy of " mediafileIO.FileMode.Create'target file, defaults overwrite  Dim len As Long = sr.Length - 1  For i As Long = 0 To len    sw.WriteByte(sr.ReadByte)    If i Mod 1000 = 0 Then 'only update UI every 1 Kb copied      ProgressBar1.Value 100 len      Application.DoEvents()    End If  Next  ProgressBar1.Value 0End Sub 
متغيب قليلاً للدراسة Smile
}}}
تم الشكر بواسطة:
#4
جربت ولم افلح
ولا استطيع رفع المرفقات
برجاء المساعدة
}}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم