Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Double Array Form Pin
Nitegoddess13-Nov-09 7:28
Nitegoddess13-Nov-09 7:28 
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 
Yeah I tried that and now I am getting an error during debugging. The error says: Object reference not set to an instance of an object. It is during the MyArray = DefArr.IndxArr; step

Here is the code:

namespace Assignment_1
{

    public partial class Form_CreateArray : Form
    {
        public Form_DefineArray DefineArray;
        int[,] MyArray;
        public Form_CreateArray()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form_DefineArray DefineArray = new Form_DefineArray();
            DefineArray.ShowDialog();
            
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            MyArray = DefineArray.IndexArray;
            if (DefineArray.IndexArray == null)
            {
                MessageBox.Show("Sorry, no array to display");
                return;
            }
            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);
        }
    }
}

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 
AnswerRe: save NumericUpDown in Registry Pin
Eddy Vluggen13-Nov-09 3:29
professionalEddy Vluggen13-Nov-09 3:29 
AnswerRe: save NumericUpDown in Registry Pin
PIEBALDconsult13-Nov-09 4:10
mvePIEBALDconsult13-Nov-09 4:10 
AnswerRe: save NumericUpDown in Registry Pin
Shameel13-Nov-09 4:14
professionalShameel13-Nov-09 4:14 
GeneralRe: save NumericUpDown in Registry Pin
Jassim Rahma13-Nov-09 13:25
Jassim Rahma13-Nov-09 13:25 
GeneralRe: save NumericUpDown in Registry Pin
The Man from U.N.C.L.E.14-Nov-09 3:58
The Man from U.N.C.L.E.14-Nov-09 3:58 
QuestionHow to get HBITMAP form BitMap Pin
vibindia13-Nov-09 1:45
vibindia13-Nov-09 1:45 
AnswerRe: How to get HBITMAP form BitMap Pin
dan!sh 13-Nov-09 2:37
professional dan!sh 13-Nov-09 2:37 

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.