hide isn't the thing to use. try this.Visible = false;