VB.NET Tutorial 7 - Progress Bar (Visual Basic 2008/2010)

VB.NET Tutorial 7 - Progress Bar (Visual Basic 2008/2010)

TeachMeComputer

14 лет назад

203,914 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@TheFILIPLAV
@TheFILIPLAV - 06.01.2012 01:34

thanks a lot!!

Ответить
@razoR2k
@razoR2k - 06.01.2012 07:39

@OperatorJaell use a timer

Ответить
@chris86560
@chris86560 - 20.02.2012 18:19

Which Camera do you use? It is Camcorder? Or Another? Where do you download it? Can you send me a download link?

Ответить
@bethala09
@bethala09 - 16.04.2012 16:47

You can even run the progressbar with a timer

Ответить
@CheeseToastHax
@CheeseToastHax - 19.04.2012 05:35

progressbar1.value = progressbar1.value + 10 can be shortened into progressbar1.value += 10

Ответить
@Akappy
@Akappy - 20.04.2012 21:19

I like the tutorials, but it seems like every single tutorial host has the microphone directly inside his throat. Slow down man... get a sip of water or something.

Ответить
@DJDevilOriginal
@DJDevilOriginal - 25.04.2012 17:34

i love your tutorials but i hate your voice and the way you was speaking....

Ответить
@iZINCZ
@iZINCZ - 03.05.2012 01:44

gtfo

Ответить
@DJDevilOriginal
@DJDevilOriginal - 03.05.2012 15:25

No thanks you go.

Ответить
@EmperorLelouch7
@EmperorLelouch7 - 15.05.2012 16:18

Hi Im usinng the 2010 version, all your the previous tutorials have wroked fine yet this one wont work could u plz help me

Ответить
@EmperorLelouch7
@EmperorLelouch7 - 15.05.2012 16:33

actually got it to work

Ответить
@EmperorLelouch7
@EmperorLelouch7 - 15.05.2012 16:33

wat version r u usin, cos if its 2010 it workls alright

Ответить
@EmperorLelouch7
@EmperorLelouch7 - 15.05.2012 16:42

i have a question, what is the code for setting a timer on it, so that the bar will progress by itself

Ответить
@NightDuty
@NightDuty - 29.05.2012 13:43

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Timer1.Start() End Sub Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Value = ProgressBar1.Value + 1 If ProgressBar1.Value = 99 Then Timer1.Stop()

Ответить
@LeonardeVearnes
@LeonardeVearnes - 16.06.2012 18:40

@nightdutnyl it does work.. but it shows like 1000000 of pops up? how do i stop it?

Ответить
@mirzazahidmaqbool712
@mirzazahidmaqbool712 - 18.06.2012 13:50

thanks man

Ответить
@mirzazahidmaqbool712
@mirzazahidmaqbool712 - 18.06.2012 13:50

thanks lot for this tutorials

Ответить
@freezzow
@freezzow - 21.06.2012 21:54

Hi, I would like to know, if we can change the color to indicate the progress? eg: 10 = red, 25 = orange, 75 = orange. Tq for the help. Appreciate it much.

Ответить
@DukerFTW
@DukerFTW - 13.07.2012 14:37

When i set: If ProgressBar1.Value = 2000 Then MessageBox.Show("Whatever") End If about 10000 windows saying "Whatever" appear! PLEASE HELP ME ASAP!!

Ответить
@Steski24PS3
@Steski24PS3 - 19.07.2012 17:09

When you gonna make the advanced one? :)

Ответить
@X0ZNz
@X0ZNz - 25.07.2012 22:40

How do i make it when i click in the button the prograss fills up? Please reply

Ответить
@MrSparkTutorials
@MrSparkTutorials - 16.08.2012 02:00

How do you have custom thumnails? You're not a partner o.o

Ответить
@seavyi22
@seavyi22 - 24.08.2012 20:44

hi ! i wanna ask you if i wanna add 10 until full =100 and than it close Form suddenly . can you tell me :D?

Ответить
@Muzimate
@Muzimate - 28.08.2012 19:10

You can use a timer. timer1.start on form load in the timer you put if progressbar1.value = 10 then progressbar1.backcolor = color.red elseif progressbar1.value = 25 then progressbar1.backcolor = orange elseif progressbar1.value = 75 then progressbar1.backcolor = orange end if

Ответить
@ccdr
@ccdr - 22.09.2012 22:55

can you tell me how to send email of the typed form ? (make a tut please if you have one already please do tell me) i want to make my sites application thanxx

Ответить
@cirlogeamihnea
@cirlogeamihnea - 23.10.2012 11:49

can you make a led shifter with 8 leds and a hscrollbar ????

Ответить
@annananana08
@annananana08 - 27.10.2012 02:00

can you teach us the advance one ? progress bar

Ответить
@20Khalid09
@20Khalid09 - 17.11.2012 20:20

how could I create a progress bar for when a mouse goes over a certain location it adds 10 until it reaches it's final destination?

Ответить
@skoopysallu
@skoopysallu - 03.01.2013 10:53

create a button....text it as "slow" now then code in this button: Timer1.interval = 500 500 is the time interval you can change this according to your wish....... Happy coding!!!!!

Ответить
@nisargdave5077
@nisargdave5077 - 20.01.2013 03:44

superb one sir................... and if we have to make a progress of a progressbar automaticlay like 1,2,3,4,5....100 one by one without toching a button then what to do.........?

Ответить
@5jef5
@5jef5 - 14.02.2013 16:17

/watch?v=tD4HaQ7yiiI I think this is what alot of you were looking for! change the progressbar color!

Ответить
@m28222
@m28222 - 12.04.2013 16:52

Why does it happens that if i click after the progress is completed it hangs or i say shows an error.........Rply fast.

Ответить
@vicsar
@vicsar - 09.06.2013 20:19

Saying reply fast will not get you the best results. Go to hell.

Ответить
@vicsar
@vicsar - 09.06.2013 20:21

Here is the handler for the button, when you reach 100 (Part1, see my reply ro self): Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' Initializes variables to pass to the MessageBox.Show method. Dim Message As String = "Process completed. Exit the aplication?" Dim Caption As String = "We're outta here" Dim Buttons As MessageBoxButtons = MessageBoxButtons.YesNo Dim Result As DialogResult

Ответить
@vicsar
@vicsar - 09.06.2013 20:25

Here is the handler for the button (Part 2): If ProgressBar1.Value < 100 Then ProgressBar1.Value = ProgressBar1.Value + 10 Else ' Displays the MessageBox Result = MessageBox.Show(Message, Caption, Buttons) ' Gets the result of the MessageBox display. If Result = System.Windows.Forms.DialogResult.Yes Then ' Closes the parent form. Me.Close() End If End If End Sub

Ответить
@zowipp1
@zowipp1 - 10.06.2013 15:16

how do you instal visual basic 2010 on tablet samsung galaxy tab 2?

Ответить
@TheVideoVolcano
@TheVideoVolcano - 19.06.2013 08:43

not with this, you would need a third party tool

Ответить
@TheVideoVolcano
@TheVideoVolcano - 19.06.2013 08:46

always simplify eg.. ProgressBar1.Value += 10 instead of.. ProgressBar1.Value = ProgressBar1.Value + 10

Ответить
@ashrafemad
@ashrafemad - 24.06.2013 19:35

what software r u using for recording answer me plzzzzzzzzzzzzzzz

Ответить
@simkodl1642
@simkodl1642 - 04.10.2013 16:22

Thankyou

Ответить
@vzwGrey
@vzwGrey - 20.10.2013 21:33

How can I make it so,that a button is only clickable,if something like activates it?

Ответить
@MrFryTech
@MrFryTech - 03.02.2014 00:55

TheGreyLP You are going to want to create a function on what it is that you want the button to do then create an If Then statement inside the buttons code.

In this example, you have to have the Checkbox checked for the button to do something when you click it. So if the Checkbox is not checked then nothing will happen if you click the button.

I created a function that will pull up a messagebox saying, "Hello" when you click Button1 ONLY if Checkbox1 is checked.

Hopefully this helped you. :)

-Fry

Code:

Private Function Message()
Msgbox("Hello")
End Function

Private Sub Button1_Click()
If Checkbox1.checked = true then
Message()
elseif Checkbox1.checked = false then
end if
End sub

Ответить
@djremi0026
@djremi0026 - 03.02.2014 17:11

thxs

Ответить
@antonisnathanaeltv
@antonisnathanaeltv - 30.03.2014 11:52

thank you my friend

Ответить
@aacpmalerkotla
@aacpmalerkotla - 05.04.2014 19:10

thanks video is amazing but i need a automatically execution of progress bar whenever my pc busy for some execution.

Ответить
@worldshinester
@worldshinester - 28.05.2014 08:28

Nice explanation. easily we can implement this in our project..

Ответить
@minhaajhussain972
@minhaajhussain972 - 10.09.2014 00:15

when is the advanced progress bar video coming up?! please, need it soon. thank you.

Ответить
@hhhllll5656
@hhhllll5656 - 12.02.2015 00:16

Ответить
@katongoleisaac3440
@katongoleisaac3440 - 01.01.2016 18:44

Thanks i really didnt know where to start.

Ответить
@jonasnaderer6101
@jonasnaderer6101 - 04.09.2016 12:16

i combind the Progress Bar with an if funktion and got it to close itselv when it is by 100 percent.

ProgressBar1.Value = ProgressBar1.Value + 10

If ProgressBar1.Value = 100 Then
MessageBox.Show("Finished")
Me.Close()

End If

Ответить