Toolbar button property

J

JES

Hello,

I'm trying to work through "Teach Yourself More Visual Basic .NET in 21
Days" and have come across something that I can't figure out. An example in
the book for creating toolbars and setting toolbar button properties shows
that the toolbar button has a "itemdata" property. This property does not
show up in my toolbarbutton collection editor and I can't seem to find any
info in the help for this particular property. Does this property exist
for this control? If not I wonder why the book shows it? Thanks in
advance for shedding any light on this. Earl
 
C

Cor

Hi Jes,

The most simple thing to investigate things like that is to visit
msdn.microsoft.com
There is direct a search box and you type in "itemdata".

But took a part of the documentation which has to make it very clear for
you.

In Visual Basic 6.0 the ItemData property for a ListBox or ComboBox control
could be set at design time in the Properties window. In Visual Basic .NET
the ItemData property no longer exists; list items are of type Object rather
than String and can contain any type of data.

I hope this helps,

Cor
 
J

JES

Thanks for the reply. I did consult the msdn library and found the same
info that you gave me. I guess I was just wondering how and why the book's
example explicitly showed an "itemdata" property in the toolbarbutton
collection editor? It does not show up at all in mine. I have to admit
that this is not the best book (IMHO). If anyone has any ideas on how this
property can show up in the toolbarbutton collection editor (if it can)
please let me know. Thanks again.
 
H

Herfried K. Wagner [MVP]

* "JES said:
I'm trying to work through "Teach Yourself More Visual Basic .NET in 21
Days" and have come across something that I can't figure out. An example in
the book for creating toolbars and setting toolbar button properties shows
that the toolbar button has a "itemdata" property. This property does not
show up in my toolbarbutton collection editor and I can't seem to find any
info in the help for this particular property. Does this property exist
for this control?

The .NET toolbar button does not have this property. The VB6 ActiveX
toolbar control didn't have an 'ItemData' property too. 'ItemData' was
a property of listbox and combobox in VB6.
 

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