473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Toolbar button property

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
Nov 20 '05 #1
3 1378
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

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

Nov 20 '05 #2
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.
"Cor" <no*@non.com> wrote in message
news:uM**************@TK2MSFTNGP12.phx.gbl...
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

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


Nov 20 '05 #3
* "JES" <e_******@hotmail.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: perspolis | last post by:
hi dears Can I have a toolbar with different button sizes???
0
by: Tamir Khason | last post by:
Strange problem here (of maybe out-of-behaviour). so this going like this: I have a toolbar, just regalar toolbar and I have buttons (some with text and icon, some with text only and some with icon...
3
by: Mark Goldin | last post by:
Is it possible to get a toolbar button that has been clicked on a client side? I'd like to add some JavaScript to it. Thanks
4
by: Fredrik Melin | last post by:
Have anyone seen a component or know how to create a button like toolbar dropdown button without the toolbar (to be used like a normal button) Regards Fredrik Melin
3
by: Smiles | last post by:
Hi there. Thanks for help in advance. I have an mdi form, with a toolbar. When i click on the toolbar button, i want to call the sub of "active mdi child" form's "Action" module, with the...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
0
by: CrimeMaster | last post by:
Hi My IE toolbar is based on the Microsoft sample KKBar. I have draw a lot of buttons on it in which some are simply pushDown buttons and some are dropdowns.Beside this I have Made a Setting...
4
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
6
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.