#cpp using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace База { public partial class Form1 : Form { public DataGridView dt = new DataGridView(); public Form1() { InitializeComponent(); dt = dataGridView1; } private void button1_Click_1(object sender, EventArgs e) { Form2 fr2 = new Form2(); fr2.Show(); } } }