toolstrip

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm converting VB 2005 Express Edition code :

For i As Integer = 1 To 10
CType(ToolStrip1.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?
 
Hi,

dons_view said:
I'm converting VB 2005 Express Edition code :

For i As Integer = 1 To 10
CType(ToolStrip1.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.Items[ i ]

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top