- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
12 Posted Topics
For my code I need to change a arrayList to a string array. I did it like this [CODE] ArrayList tempList = new ArrayList(); //some code to put strings into the list stringArray = (string[])tempList.ToArray(typeof(string)); [/CODE] It's the last line I don't get. In the ToArray method you set the … | |
Re: If you go to the folder of your project in the "visual studio"-folder, in the folder bin -> debug, you'll find an executable file of your program. | |
Re: You splits the string at the dots, put both parts in a stringarray and then take the last element of the string array [CODE] string test = "yes.no"; string [] stringArray = test.Split('.'); test = stringArray[1];[/CODE] | |
Re: you can use software ideas modeler [URL]http://www.softwareideas.net/[/URL] | |
Re: I think the only way to do that, is to draw over the line in the same color as the background of the window. I'm pretty sure you can't delete them. It would still be there, but not visible anymore. | |
Re: Try adding [CODE]Dim picShowPicture As Image[/CODE] at the beginning of you class. So just beneath [CODE]Public Class ViewerForm[/CODE] | |
Re: You can put it in a method with an array as the parameter. [CODE]static void checkArray(int[] array) { if(array[0] == array[1] && array[1]==array[9]) System.out.println("These are same elements!"); }[/CODE] Then you can check all your arrays in a loop. | |
Re: I tried your code and the bye seems to work fine. what exactly is it not doing? | |
Re: When you start counting to 0 and make it go to 9, you get 10 values. (0,1,2,3,4,5,6,7,8 and 9) If you want it to be 9, you should change your while-loop to [CODE] while(count < 9) new Bunnies(++count);[/CODE] or keep the 10 in your loop and initialize count as 1 … | |
Re: I think the problem is that you're not checking if you generate the same number twice of three times before you use them. I added/changed this to your code [CODE] int first, second, third; first = RandNum.Next(0, 3); do{ second = RandNum.Next(0, 3); } while (second == first); do{ third … | |
Re: That's the default behavior of windows; it had nothing to to with your code/application. The underscores will only appear after you hit the alt key. This expains how you can change it for windows 7 [url]http://twigstechtips.blogspot.com/2009/08/windows-7-restore-menu-underline.html[/url] And i'm sure you can change it on other versions as well. But if … | |
Re: You can use [CODE]string binary = Convert.ToString(int digit, 2);[/CODE] You can also use it to convert to octagonal and hexadecimal by changing the 2 to 8 or 16, respectively. |
The End.