Geoff,
You can call the Remove or RemoveAt methods on the Controls collection
that is exposed by the parent control/form. You can also set the Visible
property on the control to false, but this will not remove the instance of
the control, it will just hide the control (you might want to bring it back
if you are navigating back and forth).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<Geoff Cox> wrote in message
news:6l********************************@4ax.com...
Hello,
I have a button which the user clicks to move to the next question and
when the last question is answered I would like the button to be
removed. How do I do this?
Thanks
Geoff