FileMode.Open is an inacceptable overload =x
Sylenze
Posts
-
ListView list importing from .txt/ini file? -
ListView list importing from .txt/ini file?Hey, i have a question... I'm writing a program, it goes like the following: it reads every line in the txt file as one option, and you can select those options, let's say the resolution of, and after that it writes the value to another file (a settings.ini for example), then boots the specified program with that changed value. it's like: Settings.txt:
640x320 800x600 1024x768 1200x1024 1600x1200
and so on. now how can i make the .txt file be shown in the listview, and how can i define every line as 1 option? -
Random Number from 6 to 86okay thanks all for helping me =] here's the source and exe: hosted.filefront.com/sylenze
-
Random Number from 6 to 86wow you'r really good in c# =O Sorry i'm new to all this and i don't have much time for learning it... hmm
#region Vbar1 vbar1.Value x = 15; x = (vbar1.Value)(Math.Round(x / 10.0) * 10.0); #endregion
the debugger says vbar1 is a field but it's used like a type @_@ and what's the 15 for? -- modified at 14:15 Tuesday 14th August, 2007 -
Random Number from 6 to 86Ok i've got another problem... Now if you click on the "Make even!" button (for rounding up and off to 10~values, like 10 20 30 40) i don't know what to put it... I mean it should also be usable in other things like unknown values from 1~25233636 for example. it's currently this:
#region Vbar1 if (vbar1.Value = 6-10) { vbar1.Value = 10; } #endregion
1. i don't know how to make it like "from 6 to 10", the - isn't working O__O 2. it's not really flexible and i have to make like 9 if handlers for every pbar...if (vbar1.Value > 6 & < 10 )
isn't working too... -
Random Number from 6 to 86ok nevermind i got it thanks!
-
Random Number from 6 to 86omg there is no next method... Maybe i forgot a using directive? there are only 2 methods on Random... it's Equals and ReferenceEquals
-
Random Number from 6 to 86System.Random is the same as Random D: someone please explain me =(
-
Random Number from 6 to 86Hello... I'm new to C# and i want to train my skills with programming an Application that looks at 3 progressbars and make the values of them "even", like if pbar1's value is 34, it becomes 30, but if it is 36, it becomes 40. I use it to test the Fuzzy logic dot net =x Now this is the code i need help with:
private void button2_Click(object sender, EventArgs e) { if (chkbx1.Checked) { vbar1.Value = Random; } }
"button2" is my Object for generating random Numbers for those pbars with checked checkboxes... Now how to get that random Value from 6 to 86? please help =(