toolstrip

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dons_view

    toolstrip

    I'm converting VB 2005 Express Edition code :

    For i As Integer = 1 To 10
    CType(ToolStrip 1.Items.Item(i) , ToolStripButton ).Checked = False
    Next

    to VCSharp 2005 but VCSharp 2005 does not seem to recognize the Item(i),
    portion

    What code works in VCSharp 2005?
  • Laurent Bugnion

    #2
    Re: toolstrip

    Hi,

    dons_view wrote:
    I'm converting VB 2005 Express Edition code :
    >
    For i As Integer = 1 To 10
    CType(ToolStrip 1.Items.Item(i) , ToolStripButton ).Checked = False
    Next
    >
    to VCSharp 2005 but VCSharp 2005 does not seem to recognize the Item(i),
    portion
    >
    What code works in VCSharp 2005?
    In C#, you can iterate collections using the array notation:

    ToolStrip1.Item s[ i ]

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: http://www.galasoft-LB.ch
    PhotoAlbum: http://www.galasoft-LB.ch/pictures
    Support children in Calcutta: http://www.calcutta-espoir.ch

    Comment

    Working...