private void button2_Click(object sender, System.EventArgs e) { m_styleGalleryItem = null; //hide the form this.Hide(); }