473,503 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing Toolbar Buttons at Run-time

How on earth do you disable ToolBar Buttons and change the images on ToolBar
buttons at run-time?

Thanks,
Michael C.
Nov 16 '05 #1
3 2518
Try this

//to disable toolbar button
toolBarButton1.Enabled = false;

toolBarButton1.ImageIndex = 1; //to change images.

Shak

"Michael C" <mi*******@optonline.net> wrote in message
news:IG***********************@news4.srv.hcvlny.cv .net...
How on earth do you disable ToolBar Buttons and change the images on ToolBar buttons at run-time?

Thanks,
Michael C.

Nov 16 '05 #2
Anyone know how to generate .NET IDE style toolbars?

Thanks,
Michael C.
"Michael C" <mi*******@optonline.net> wrote in message
news:IG***********************@news4.srv.hcvlny.cv .net...
How on earth do you disable ToolBar Buttons and change the images on ToolBar buttons at run-time?

Thanks,
Michael C.

Nov 16 '05 #3
Tried that Shakir, didn't work. Also thought I might be able to do
something like this:

toolBar1.Buttons[1].Enabled = false;
toolBar1.Buttons[1].ImageIndex = 1;

I found some info in the documentation, it looks like the Buttons collection
of a Toolbar is read-only ?! :( Also tried to .Clear() the ToolBar and
re-add the buttons, that didn't work either. Grrr....

I'd really like to get some .NET IDE style buttons up in here. Is it just
me or do the newest versions of MS languages seem to come with very limited
versions of the newer controls... or are they slight upgrades of the old
controls? None of the controls I keep running across in C#.NET seem to
compare with the functionality of the controls used in the IDE...

Thanks,
Michael C.
"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Try this

//to disable toolbar button
toolBarButton1.Enabled = false;

toolBarButton1.ImageIndex = 1; //to change images.

Shak

"Michael C" <mi*******@optonline.net> wrote in message
news:IG***********************@news4.srv.hcvlny.cv .net...
How on earth do you disable ToolBar Buttons and change the images on

ToolBar
buttons at run-time?

Thanks,
Michael C.


Nov 16 '05 #4

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

Similar topics

4
1236
by: Steve | last post by:
C# .Net My application is a one window one world one love, type of affair. There are the occasional pop up screens, but in the main it is one window, and all screens are displayed within this...
2
1458
by: Jean-Francois Cantin | last post by:
I used a toolbar with an imagelist. When my devenv.exe file had an associated manifest file, disabled images in this toolbar was shown with grayscale colors. I'm trying to remove the manifest file...
3
2452
by: Al | last post by:
Hi All, I am trying to get a 24x24 "Windows XP" icon to display correctly on a button in my toolbar. My icon has 8 layers (16x16, 16x16, 24x24, 24x24, 32x32, 32x32, 48x48, 48x48) with each size...
9
1780
by: Hugh | last post by:
after I changed the image size. I tried different combinations of images sizes and button sizes. I have tried both botton and the image in the same sizes or button size was larger than that of...
8
1095
by: S Shulman | last post by:
Hi All Using the TabSelected event of the Tab control the program hides and shows buttons on the toolbar But for some reason if I change tab A to B it works fine but if I change A to C then all...
2
1360
by: Ahmed | last post by:
Hello everyone, I am creating a toolbar for an application. The buttons contains images and text. I set the wrappable property for the toolbar to false so the toolbar does not add another line...
3
1241
by: Meghezel | last post by:
I want to Make DropDownMenu for toolbar(just like Back or forward buttons of browser) takes its menuitems from Contextmenu filled with array of menuItems I could not handle the event of clicking...
8
5054
by: Peter | last post by:
Would someone provide a gentle explanation of how programs such as Adobe Acrobat and Crystal Reports are able to add toolbars to the Access UI. (So that when you start msaccess.exe these toolbars...
4
3635
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...
3
2406
by: doncee | last post by:
Trying to add the formatting toolbar to a memo field in '97. I am able to add the toolbar from the view\toolbar\custom menu but as soon as I open the database it becomes grayed out. Hopefully there...
0
7278
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,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.