i have a table layout panel with lots of controls in it.
side to it i have a combobox with 5 options "system A" and "system B" ect.
when i pick one system, i clear all the controls one by one (checkboxes to check=falsa , textboxes.text = "" ect. ), then i put visible = false to the controls i dont need and visible = true to those who were false .
is there a way to completely clear the table layout panel and then recreate it with the appropriate controls (something like initialiseComponents) ?
i've tried dispose but then when i use the creatcontrol method i get "canot access a disposed object".