Anand,
I don't know if it is a real good solution, however when I tried this I
thought it gave me the result as expected with a designer created form.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Me.Controls.Clear()
InitializeComponent()
End Sub
///
I hope this helps?
Cor
"S Anand" <x@hotmail.com> schreef in bericht
news:CC**********************************@microsof t.com...
Cor,
Apologies for the confusion. I saw this post and asked a related question.
How/where can we set a form to new ?
We want to make this call from an icon in our form. We are not able to
call
Me.New() or MyBase.New() as they are constructor methods.
Thanks in advance.
Anand
"Cor Ligthert" wrote:
Anand,
>> Is there an easy way to dynamically delete all the controls on a form
> >without knowing exactly what the controls are?
This was your first question on which Alejandro answered and than you
reply
> This seems to "Deletes" the controls from the form.
I find this not a fair reply to Alejandro.
Setting a form to "new" is the most easy way to reset it to its base
format
in my opinion.
Just my thought,
Cor