Cara guna komponen ‘ProgressBar’

Posted by admin On November - 14 - 2009

Langkah 1: Toolbox > ProgressBar


s1


Langkah 2: Right-Click > Properties


*buat tetapan kepada ‘ProgressBar’ itu


s2


*(Name) = tunggu


s2b


Langkah 3: Toolbox > Button


*masukkan 3 butang


s3


Langkah 4: buat tetapan pada setiap butang



s3b


*Name
s3c

  • Butang 1: kosong_butang
  • Butang 2: separuh_butang
  • Butang 3:penuh_butang



*Text
s3d

  • Butang 1: kosong
  • Butang 2: separuh
  • Butang 3: Penuh

Hasil Akhir Fasa Reka Bentuk


akhir


Langkah 5: Tulis aturcara


*right-click > View Code dalam ruangan “Form1″ untuk lihat bahagian aturcara

Public Class Form1
 
    Private Sub klikKosong1(ByVal sender As System.Object, ByVal e As EventArgs) Handles kosong_butang.Click
        tunggu.Value = 0
    End Sub
 
    Private Sub klikKosong2(ByVal sender As System.Object, ByVal e As EventArgs) Handles separuh_butang.Click
        tunggu.Value = 50
    End Sub
 
    Private Sub klikKosong3(ByVal sender As System.Object, ByVal e As EventArgs) Handles penuh_butang.Click
        tunggu.Value = 100
    End Sub
 
End Class



Perkongsian:



Popularity: 2% [?]

Incoming search terms:

One Response to “Cara guna komponen ‘ProgressBar’”

  1. mohd yazid says:

    cmana nk integrate dgn process ?? Cth, tgh load programm (bkn file) ms first start up apps..Coz kalu progressbar utk file, kite bleh update progressbar value by calculating remaining chunk of bytes.

Leave a Reply

Upload Files

You can include images or files in your comment by selecting them below. Once you select a file, it will be uploaded and a link to it added to your comment. You can upload as many images or files as you like and they will all be added to your comment.

Spam Protection by WP-SpamFree