Click here to Skip to main content
16,007,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Double Array Form Pin
PIEBALDconsult13-Nov-09 4:08
mvePIEBALDconsult13-Nov-09 4:08 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 4:27
Nitegoddess13-Nov-09 4:27 
AnswerRe: Double Array Form Pin
Saksida Bojan13-Nov-09 6:02
Saksida Bojan13-Nov-09 6:02 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 6:28
Nitegoddess13-Nov-09 6:28 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 6:47
Saksida Bojan13-Nov-09 6:47 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 7:01
Nitegoddess13-Nov-09 7:01 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 7:14
Saksida Bojan13-Nov-09 7:14 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 7:28
Nitegoddess13-Nov-09 7:28 
Yes I ran the program and it seemed to work without errors.

I took out the m's and changed the decimal to int like you said. It still seems to work the same. I don't think I need a msg box to let them know they have reached the beginning again but I know how to put that in if needed. I am now in the process of trying to test to see if the data was saved and if so how to get it to display in a msg box that is prompted in a form which is it's parent form. Do you know if the data is being saved and if so how I can create a button outside of the class that will allow me to access the data so it is displayed in a msgbox as:

Array[0,0] = 1.0
Array[0,1] = 3.8
Array[0,2] = 9.7
Array[1,0] = 5.2
Array[1,1] = 2.1
Array[1,2] = 5.8

for example.

From what I can tell it isn't being saved.

This is the code I am using for the button click on the other form:

Form_DefArr DefArr = new Form_DefArr();
if (DefArr.IndxArr == null)
{
    MessageBox.Show("Sorry, no array to display");
    return;
}
MyArray = DefArr.IndxArr;
string output = "";
for (int i = 0; i < MyArray.GetLength(0); i++)
    for (int j = 0; j < MyArray.GetLength(1); j++)
        output += "Element[" + i.ToString() + "," + j.ToString()
            + "] = " + MyArray[i, j].ToString() + "\n";
MessageBox.Show(output);


I say this because when I click it the MessageBox.Show("Sorry, no array to display") is displayed.
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 8:00
Saksida Bojan13-Nov-09 8:00 
GeneralRe: Double Array Form Pin
ragnaroknrol13-Nov-09 8:07
ragnaroknrol13-Nov-09 8:07 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 8:28
Saksida Bojan13-Nov-09 8:28 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 8:42
Nitegoddess13-Nov-09 8:42 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 8:48
Saksida Bojan13-Nov-09 8:48 
GeneralRe: Double Array Form Pin
ragnaroknrol13-Nov-09 8:50
ragnaroknrol13-Nov-09 8:50 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 8:33
Nitegoddess13-Nov-09 8:33 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 8:45
Saksida Bojan13-Nov-09 8:45 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 8:52
Nitegoddess13-Nov-09 8:52 
GeneralRe: Double Array Form Pin
Saksida Bojan13-Nov-09 8:57
Saksida Bojan13-Nov-09 8:57 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 9:02
Nitegoddess13-Nov-09 9:02 
Questionsave NumericUpDown in Registry Pin
Jassim Rahma13-Nov-09 3:06
Jassim Rahma13-Nov-09 3:06 
AnswerRe: save NumericUpDown in Registry Pin
dan!sh 13-Nov-09 3:28
professional dan!sh 13-Nov-09 3:28 
GeneralRe: save NumericUpDown in Registry Pin
Jassim Rahma13-Nov-09 3:32
Jassim Rahma13-Nov-09 3:32 
GeneralRe: save NumericUpDown in Registry Pin
dan!sh 13-Nov-09 3:37
professional dan!sh 13-Nov-09 3:37 
GeneralRe: save NumericUpDown in Registry Pin
Jassim Rahma13-Nov-09 3:43
Jassim Rahma13-Nov-09 3:43 
GeneralRe: save NumericUpDown in Registry Pin
Covean13-Nov-09 3:40
Covean13-Nov-09 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.