Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Would this work?

Hello, I am not used to coding while high so, perhaps I look really fucking stupid right now.

Spoiler (Click to View)
Yeah, I do think it will work. You don't need the lq wut
You're messing it up, you're trying to divide a string.

Convert.ToInt32(textBox1.Text)
progressbar1.value should be =100 lol
(Oct 24, 2014 11:02 PM)Programming Wrote:  You're messing it up, you're trying to divide a string.

Convert.ToInt32(textBox1.Text)
again my first time doing this high so ye xD I don't have the source or anything and too lazy to redo it just to see if this would work, but other than that mistake is looks alright?

(Oct 24, 2014 11:03 PM)Zasto Wrote:  progressbar1.value should be =100 lol

Ok, no. It has to be greater because what if the amount to send was not equally divisable by 4 ? That would never allow it to stop, because it will never hit 100, it will skip it because the other thing isnt always going to be a whole number or mutable of 100 (trying to explain while high...)
(Oct 24, 2014 11:07 PM)OpenSourcerer Wrote:  again my first time doing this high so ye xD I don't have the source or anything and too lazy to redo it just to see if this would work, but other than that mistake is looks alright?

Ok, no. It has to be greater because what if the amount to send was not equally divisable by 4 ? That would never allow it to stop, because it will never hit 100, it will skip it because the other thing isnt always going to be a whole number or mutable of 100 (trying to explain while high...)

No, what you posted will actually crash.

You're going to value 101 of the progress bar when 100 is the max.

No try / catch / finally loops either.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by Sir BillyAug 26, 2019 06:33 PM 1 149 Aug 26, 2019 06:33 PM
Last Post: YouthInAsia