G
Guest
Can anyone tell me how to programmatically remove a control from a tab page
from VB .Net? The control was added using:
Me.TabPage1.Controls.Add(pb)
but I don't know what its index number is to remove it using:
Me.TabPage1.Controls.RemoveAt(index)
and Me.TabPage1.Controls.Remove(pb) doesn't work.
Thanks for any help provided,
Stephanie
from VB .Net? The control was added using:
Me.TabPage1.Controls.Add(pb)
but I don't know what its index number is to remove it using:
Me.TabPage1.Controls.RemoveAt(index)
and Me.TabPage1.Controls.Remove(pb) doesn't work.
Thanks for any help provided,
Stephanie