I'm trying to understand why this code doesn't work.
Can someone help?
foreach (TextBox replyBox in textboxPanel.Children.OfType<TextBox>())
{
if (replyBox.Name.Contains("Reply"))
{
textboxPanel.Children.Remove(replyBox);
}
}
It return a message saying the type has changed.
I've seen some other post using panel.controls
but I don't have that for my panel somehow.
regards,