private void trackBar1_ValueChanged(object sender, EventArgs e) { grid1.CellSize = trackBar1.Value; }