ToolStripItem Keys...

G

Guest

Hopefully there is an easy answer to this question since it has been
bothering me all afternoon.

What are the keys that are associated with ToolStripItem objects? Are they
keys that allow access to individual items in the ToolStripItemCollection
object (this is what I assumed they were)? Are they the shortcut keys? I
have noticed that there are several methods (such as ContainsKey) of the
ToolStripItemCollection class that use these key values. I can't find
anywhere to set the key values of the contained objects though.

What am I missing?

Thank you,

Jason Richmeier
 
L

Luke Zhang [MSFT]

Hello,

The ToolStripItemCollection class implements the interface IEnumerable, the
item in a ToolStripItemCollection can be indexed by integer or a string (
the name of the ToolStripItem), for example:

MsgBox(ToolStrip1.Items(1).Name)

or


MsgBox(ToolStrip1.Items("OpenToolSTripButton").Name)

Hope this help,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Top