473,386 Members | 1,702 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,386 software developers and data experts.

Button in Toolbar

Hi NG,

i want use this example:

this.toolBar.Buttons["savedoc"].Visible = true;
But this example not work.

I can use only this one:
this.toolBar.Buttons[7].Visible = true;

I want use the keyword from Button. Have anyone a ideas.

Thanks und greeting from Berlin

Asim


Nov 17 '05 #1
4 1181
The ToolBar.ToolBarButtonCollection.Item Property is not overloaded and
only supports retrieving a button by its index.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack ActiveX & .Net
Drop In Windows Explorer like Shell Browsing GUI controls for your app.

"Asim Tozlu" <as*@wertuzti.de> wrote in message
news:uU**************@TK2MSFTNGP14.phx.gbl...
Hi NG,

i want use this example:

this.toolBar.Buttons["savedoc"].Visible = true;
But this example not work.

I can use only this one:
this.toolBar.Buttons[7].Visible = true;

I want use the keyword from Button. Have anyone a ideas.

Thanks und greeting from Berlin

Asim

Nov 17 '05 #2
Hi,
The ToolBar.ToolBarButtonCollection.Item Property is not overloaded and
only supports retrieving a button by its index.


hmmmmmmmmm... not good, but thanks for help...
Nov 17 '05 #3
Asim,

Why not just refer to the name of the button that you assigned it? You
don't need to reference the toolbar in order to reference the button on
the toolbar. Just type "this." in your code and the name of the button
will appear.

Best Regards
Johann Blake

Nov 17 '05 #4
Hi,

You could resolve this, just create your own ToolBar class , and just
create a new indexer, you can iterate in the list and search by name

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Asim Tozlu" <as*@wertuzti.de> wrote in message
news:uw**************@TK2MSFTNGP15.phx.gbl...
Hi,
The ToolBar.ToolBarButtonCollection.Item Property is not overloaded and
only supports retrieving a button by its index.


hmmmmmmmmm... not good, but thanks for help...

Nov 17 '05 #5

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

Similar topics

2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
0
by: jbbs | last post by:
I have a question regarding on the button and label. i don't know why when the mouse cursor points on the button, i see the button is flirking. is there anyway to make it not behave like that?...
0
by: Lauren Quantrell | last post by:
I use the following code to create text edit fields and command buttons in my toolbars: Function CreateToolbarObject(myObjectType as integer) Dim newObject Select Case myObjectType Case 1...
1
by: ChrisHerrick | last post by:
I'm having problems with my toolbar button text being truncated when I use EnableVisualStyles. Toolbar style is Flat, the button is a dropdown button and I'm setting the buttonsize on the toolbar...
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...
7
by: IntraRELY | last post by:
I am using the following command to launch and .NET VB Executable, which is a simple Windows Form (printCheckClient.exe). I am using a HyperLink Control and works perfect....
8
by: Mark Goldin | last post by:
I have a toolbar on my form. How do I know what button was clicked?
1
by: John | last post by:
Hi I need a drop down button on my form (not on toolbar). What I need is a button which when pressed returns 'Option1'. If it is dropped down, it shows both 'Option1' & 'Option2' so user can...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.