private void button1_Click(object sender, EventArgs e) { object obj = this.propertyGrid1.SelectedGridItem.Value; frmHardware f = new frmHardware(obj); f.ShowDialog(); }