Hi I am using this code to clear the contents of my panel
For Each c As Control In PanelEdit.Controls
If TypeOf c Is RadTextBox Then
DirectCast(c, TextBox).Text = String.Empty
End If
If TypeOf c Is MaskedEditBox Then
DirectCast(c, MaskedEditBox).Text = String.Empty
End If
If TypeOf c Is ListBox Then
DirectCast(c, ListBox).Text = String.Empty
End If
Next
All the other controls are cleared this line does nothing
If TypeOf c Is ListBox Then
DirectCast(c, ListBox).Text = String.Empty
End If
the idea is if a user opens a different panel and then comes back to the panel they were in all the data is cleared.
any ideas
thanks
M