(May 12, 2011 03:55 PM)Alex™ Wrote: 2) Double click 'Button1', then writeSpoiler (Click to View)PHP Code
<?php
ProgressBar1.Value = ProgressBar1.Value + 10
You should use the .Increment method instead, it's shorter and it's what it was make for.
|
.NET
[TUT] How to use progress bars in depth [Noob Proof] |
(May 12, 2011 03:55 PM)Alex™ Wrote: 2) Double click 'Button1', then write You should use the .Increment method instead, it's shorter and it's what it was make for. (May 12, 2011 03:58 PM)Alex™ Wrote: Thanks, here is the new code, ill put it in the post in a sec. You don't need the "+," just 10. (May 12, 2011 04:09 PM)Alex™ Wrote: i don't O.o ok lol thanks What do you mean you don't? Quote: ProgressBar1.Increment(+10) (May 12, 2011 04:13 PM)Alex™ Wrote: like an a rhetorical question i.e bob says"you need to do 'x' " sid says" I do? ok" Oh, well, there was no question mark, lol, I thought you meant it literally.
Fair play this is helpful to beginners, the reason behind saying that isn't just the snippet for adding a progress bar but with visual support to the annotations (like debugging) helps newbies understand what people mean in other written tutorials.
P.S my name's alex also and Im proud as hell to be british :) -- (May 12, 2011 05:02 PM)Alex™ Wrote: Thanks for that but im pretty new to vb.net could you please tell me how i would use that? Basically by using progressbar1.value = progressbar1.value +1 this is saying the new value will be the current value of progress bar 1 PLUS another one. however this code: progressbar1.value += 1 does exactly the same thing just shorter and cleaner. Code dim i as integer = 0 'declaring i as an integer, an integer holds a number giving it the value of 0 |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Python] by MiguelSanchezFeb 20, 2022 07:49 AM | 2 | 128 |
Feb 20, 2022 07:49 AM Last Post: Sky |
| [.NET] by blake.haleApr 8, 2018 10:31 AM | 8 | 639 |
Apr 8, 2018 10:31 AM Last Post: adenfr |
| [.NET] by blake.haleApr 7, 2018 03:45 PM | 16 | 1,327 |
Apr 7, 2018 03:45 PM Last Post: darkvas |