Object looping ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deasun O'Donnachadha

    #1

    Object looping ?

    Good evening,

    I have a panel with a number of labels and textboxes.
    I want to set the text boxes to readonly = false.
    This is what I have;

    Dim objTxtBox As New TextBox
    For Each objTxtBox In pnl_FB_Details. Controls
    objTxtBox.ReadO nly = False
    Next

    I get err msg: cast not valid.
    What am I doing wrong ?

    Thanks
    Deasun
Working...