473,805 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabled button on ToolBar

Hi -

I have a ToolBar with 32-bit colour icons. It looks really good, but I need
to disable some of the buttons. When I do this, I get a grey blob where the
image has been converted into a disabled image.

I have a grey scale image, that I'd like to display, but I am at a loss as
to how to get the toolbar to display the image when the button is disabled.
If I change the buttons image, it displays correctly, but I cannot change
the Enabled property to false (the button still operates).

How do I specify the icon for a disabled button?

TIA

- Andy
Nov 16 '05 #1
0 1185

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

Similar topics

5
2285
by: Nick Li | last post by:
Hi, I need to create a html page so that "Back" button(or some other button) is disabled in IE browser. I would appreciate your help. Nick Li
1
13960
by: Kersh | last post by:
I have developed with Visual Studio .NET on the same PC for around 9 months now. I upgraded from VS.NET 2002 to VS.NET 2003 about 3 months ago no problems and since then I have continued coding, compiling and releasing mostly ASP.NET and Windows Forms applications. My workstation is Windows XP Sp1 with all the latest critical security patches/upgrades installed from Windows Update. This week I noticed that the VS.NET ToolBox with the...
2
3338
by: Sveta | last post by:
Hi all! C# question: Does anyone knows how to make a toolbar button image to make visible for a disabled button? When the toolbar button is disabled, only the gray hole is displayed instead of the grayed out image. Thank you.
2
7147
by: Kubuli John | last post by:
I have a LinkButton in an ASP.NET web form. Depending on the current state of affairs, I either enable or disable the link button in by code-behind class (e.g., disable the "Previous" button if you are already at the first record). I have constructed a very nice style for the button in my stylesheet, but the style is ignored when I disable the button. So, how do I control the display attributes of a disabled HTML widget? Thanks...
2
1239
by: Terp | last post by:
Hi all, Does anyone know why the Test Dialog button on the Format toolbar is always disabled for me? I've hunted through the help files, searched MSDN, searched the web, but can't find anything related to this. Does Test Dialog not work with a Windows form within a VB project? I even tried assigning a keyboard shortcut but that fails to work also. Thanks for your help. -- Chris
0
1158
by: Sujoan | last post by:
Hi, I have added a button to IE backed by a COM object using C#. Iam able to achieve the required functionality on the click of the button. However, I am unable to click the button again, i.e., my toolbar button gets disabled and grayed out. I have implemented IOleCommandTarget::QueryStatus implementation method as follows: public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText) {
0
1043
by: Sujoan | last post by:
Hi, I have added a button to IE backed by a COM object using C#. Iam able to achieve the required functionality on the click of the button. However, I am unable to click the button again, i.e., my toolbar button gets disabled and grayed out. I have implemented IOleCommandTarget::QueryStatus implementation method as follows: public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText)
1
9105
by: Farhaad Faaique | last post by:
Dears, how can i enable a from's design view when it is disabled? (the database doesn't have any passwords to be accessed but it has password for vba codes). thanks in advance, Farhaad
3
1132
by: sudhaMurugesan | last post by:
Hi all, When I view my page(ASP.net with C#) in browser, the back button (IE 6.0) gets disabled and I'm not able to view the previous page.In my page I've a back button in my toolbar.Is there any C# coding to move to previous page without refreshing which i can use in my page's back button(Not IE's Back Button). Please Help me.
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10607
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9182
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6875
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.