|
Double Array Form
11/13/2009 9:43:11 AM
(Total replies: 1)
|
| I need to create a form that allows a user to create a two dimensional array. I made a form that has 2 numericupdowns that allows the user to set the maximum number of positions and columns within the array. This set of numericupdowns will not be used again so any mention of numericupdowns refers to the following set. Then I have another set of numericupdowns, a textbox and a button to allow the user to set a value which is typed into the textbox for each array combination. The second set of ... |
|
|
|
Re: Double Array Form
11/13/2009 11:12:09 AM
(Total replies: 1)
|
| That seems to work great, however I need to make an event handler for the “ValueChanged” event of the two NumericUpDown controls. Then, when the user changes the value in either of the two NumericUpDown controls, you will read the new values and display the contents of the appropriate array element. |
|
|
|
Re: Double Array Form
11/13/2009 11:17:03 AM
(Total replies: 1)
|
| Also how could I make a msg box pop up that would display the array with all the correlating values using a for loop?
<br />
<br />
so the msg box would display:
<br />
<br />
Array[0,0] = 1.0
<br />
Array[0,1] = 3.8
<br />
Array[0,2] = 9.7
<br />
Array[1,0] = 5.2
<br />
Array[1,1] = 2.1
<br />
Array[1,2] = 5.8
<br />
<br />
etc. |
|
|
|
Re: Double Array Form
11/13/2009 1:36:59 PM
(Total replies: 1)
|
| What I mean about the valuechanged is that I need it so that when the user clicks on the up or down button in the numericupdown, the previously saved variable that was entered in the textbox should be displayed in the textbox. Does that make sense? |
|
|
|
Re: Double Array Form
11/13/2009 2:16:23 PM
(Total replies: 1)
|
| That worked well, thank you.
<br />
<br />
I am having some issues with the msgbox tho. The information is not being transferred from the form I created the array in, to the form I have the button for the msg box in.
<br />
<br />
Here is my code so you can see the problem:
<br />
<br />
namespace Assignment_1
<br />
{
<br />
<br />
public partial class Form_CreateArray : Form
<br />
{
<br />
public Form_DefineArray DefineArray;
<br />
int[,] ... |
|