private void enuItemLoad_Click(object sender, EventArgs e) //Load option { string[,] fileArray = new string[17, 7]; int counter = 0; // Read the file and display it line by line. StreamReader file = new StreamReader("E:\\hello.txt.txt"); StringBuilder sb = new StringBuilder(); string line = ""; while ((line = file.ReadLine()) != null) { if (line.Length > 0) { sb.Append(line); counter++; } } file.Close(); // Suspend the screen. Console.ReadLine(); formNew previousData = new formNew(); }
private void menuItemNew_Click(object sender, EventArgs e) { formNew fn = new formNew(); fn.MdiParent = this; fn.Show(); }