![]() |
|
[.NET] Would this work? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Would this work? (/showthread.php?tid=4506082) |
Would this work? - OpenSourcerer - Oct 24, 2014 Hello, I am not used to coding while high so, perhaps I look really fucking stupid right now. Spoiler (Click to View) * - 420 Blaze It - Oct 24, 2014 Yeah, I do think it will work. You don't need the lq wut * - Programming - Oct 24, 2014 You're messing it up, you're trying to divide a string. Convert.ToInt32(textBox1.Text) * - Zasto - Oct 24, 2014 progressbar1.value should be =100 lol * - OpenSourcerer - Oct 24, 2014 (Oct 24, 2014 11:02 PM)Programming Wrote: You're messing it up, you're trying to divide a string.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...) * - Programming - Oct 24, 2014 (Oct 24, 2014 11:07 PM)jlyon11 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? 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. |