No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have 9 buttons in Form1.Designer.cs. And I want to use them in another class which is Puzzle.cs. What I've done is, [CODE] private int PUZZLESIZE = 3; private int col, row; private Button[,] buttons = new Button[3, 3] { { Form1.button1, Form1.button2, Form1.button3 }, { Form1.button4, Form1.button5, Form1.button6 }, … |
|
For example, "In put rectangle size: 3 4" and gives the width = 3, length = 4. Thanks!!! |
|
Hi,everyone. The problem is when I input "m" or "p" or other single input, it gives "ArgumentOutOfRangeException" in the line "int i = Int32.Parse(command.Substring(1, 1));". "if(command.Substring(0, 1) == "r" && i<= numCols)" these kind of condition use when the input like "r1,r2,r3...", then the following method takes number part as … |
|
Hello everyone, I'm required to print a puzzle which in the form of row*col. And my code can do that except when row and col are the same number. How can I fix that? And another question is, how can I store these values into a 2D array??? Because later … |