PUBLIC SUB TabStrip1_Click() IF TabStrip1.index = 0 THEN PictureBox1.Reparent(TabStrip1, 0, 0) IF TabStrip1.index = 1 THEN PictureBox1.Reparent(TabStrip1, 0, 0)END