المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : سؤال في ال C# 2005


laplac
09-07-2005, 05:07 AM
عفوا هكتب بالانجليزي عشان أسهل

in C# 2005 Beta there is a new tool called ( Progress bar ) to show the progress of specified application ( loading , processing .. etc ) .. i cant use it .. i need to know where i can write the code of it .. and what code should i write to link it with my application that want it to be shown in progress bar .. and what events in progress bar can help me better ..

thnx in advance

Tymyah
09-07-2005, 03:24 PM
يجب أن تخبرني أخي في ماذا تريد إستخدامه
على العموم هذة طريقة من الطرق:

Drage a Progress Bar Control on ur form
Put its modifier to public if u want to access it from any where
Please note tha I'm taking about the Properties of the Control
the step is usually 10 thats mean a one rectangle will be added each step u can modify it if u like.
U can also set the Maximum and minimum values added to the Progress Bar by
eg. progressBar1.Maximum = 20
progressBar1.Minimum = 10

u can update or progress the progress Bar by controling its value like this
progressBar1.Value += 1
it means one step each time if ur calling a Method or looping the Bar

I think thats all u need about the progress Bar

and another thing the progress bar is not a new tool its a very old one I think it was first in VB 5.0 I don't remember much......
والله أعلى وأعلم

laplac
09-07-2005, 10:32 PM
انا اشتغلت ++c و #c بس فمشفاكر اذا كنت شوفتوا ولا لأ .. و شكرا جزيلا عالرد .

Mr. Romaryo
10-07-2005, 09:12 AM
بسم الله
======


اخى الكريم .. انا رفعتلك sample صغير كدة فى المرفقات ..
وهو بطريقة زى بتاعت الاخ Tymyah .. ولكن مختلفه شويا ..
فانا استخدم step >> لزيادة الــ value ...
عموما الكلام اللى شرحه الاخ Tymyah .. يغنينى عن كتابة comments



مع التحية

Tymyah
10-07-2005, 06:21 PM
العفو يا أخ laplac ولا شكر على واجب

وأشكرك أخ Mr. Romaryo على تعقيبك وعلى Sample code الذي قمت بوضعة فلقد أفادني أنا أيضا وهذة هي البرمجة مليون طريقة لعمل نفس الشيء
والله أعلى وأعلم
والسلام عليكم جميعا ورحمة وبركاته

laplac
10-07-2005, 08:21 PM
شكرا جزيلا للأخ Mr. Romaryo و الاخ Tymyah على الردود .. معلش أصل اما عندي مشروع تخرج هيتسلم بعد بكرة .. و كنت عاوز أعملة شوية حركات :)

Tymyah
10-07-2005, 08:36 PM
ولا يهمك يا باشا ولو عايز تضبيطات أكتر نزل الكود والبرنامج ده ممكن تعمل بيه GUI روعة
وإليك الرابط
http://sourceforge.net/project/showfiles.php?group_id=109507&package_id=133320
وربنا يوفقك