.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Disabled buttons have blue text. How do I change?

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :Windows Application

I have an app that has black text on silver buttons.  When a button is disabled, it changes the background color as one would expect, but it changes the text to blue.  This is not what Outlook is doing.  In Outlook the disabled buttons have gray text.

Any idea why my disabled button's text is being made blue instead of gray and how to i make it follow the way the other windows apps are working?  I want gray text for disabled buttons.  BTW, visual styles are turned on.



View Complete Post

More Related Resource Links

Page Layout and Text Layout Buttons Disabled on Ribbon

I am trying to create a publish site in Sharepoint 2010, and I am using the Ribbon control.  Currently, I am having trouble adding and changing content on my site, due to both the Page Layout and Text Layout buttons being disabled.  I have been trying to figure out what security or feature needs to be active to get these enabled again.  Any help would be appreciated.

Change Button Text in Multi Language Website


Hi i developing multi language website

using Master pages

everything fine

Page_Load i set the Text property of Button Control from Resource file

like this

Button1.Text = GetLocalResourceObject("Button1")

then in the button click event i cnage the text of the Button control

Button1.Text = GetLocalResourceObject("Button1_new")

but the text doesn't change and no error messgae

what is the problem how to solve this


How to change text in columns in SSRS?


I need to create a complex report and export it to Excel. 

In the first column header, text is displayed as "Hide Daily Columns", but I need the text to change as "Unhide Daily columns" when I click on it and when the text changes the columns under "daily" header (I have 3 columns under this header) present in the report shud be hidden and only weekly columns shud be visible. Any ideas please. I am new to SSRS and tried out many ways but didn't get it.

evaluate data in row and change text on asp:ButtonField accordingly.


I am building a website for my hockey league.


I have a gridview that displays the current weeks scheduled games. Ideally I have added a column to the end of the gridview that I would like display 1 of 3 values. If the game has already been played I would like to display the score of the game; if the game has yet to be played I would like the column blank and if someone on either team has indicated that they can't make the game I would like to display a button that says "subs needed" and take you to another page to sign up to be a sub. Can this be done? I have been able to change the background color of the line based on the two boolean flags from the database using the RowDataBound event handler but I can't seem to find a way to set the value of a specific field in my row. (The background is set for the whole row.)

Thanks in advance -eric

Change label text on master page from the content page.

Hello. Can I access the objects (for example change the label text) on the master page, from its contents page code? If yes, how can I approach that? Thank you Artashes

Change Text of Sharepoint Form Dialog title Bar

Hi, I am having Sharepoint 2010 RTM Trial on Windows Server 2008 SP2. I have published custom infopath form to sharepoint List. I have two views in that form, One is called AddItem and The other one is called EditItem. I have use the infopath rule to switch views depending on some condition and it is working fine. But when the view is switched to EditItem, I want to Customize the Title bar of Form Dialog to my custom text.... Can anybody have an answer ? Regards

How to align text to top position on Ribbon buttons?

Hello SharePoint Experts, I have a custom masterpage which is derived from v4.master and it uses the default SP Foundation 2010 Ribbon. As you all know,the default Ribbon buttons such as New Document,Upload Document,Alert Me,etc, have text at the bottom below the icons. Ribbon buttons such as CheckOut,CheckIn,etc have their text aligned to the right of the icons. My requirement is to have all the text on Ribbon groups and buttons aligned to the top such that the image is below the text.(By default it is the other way round). I tried manipulating the CMDUI.XML file located at 14\TEMPLATE\GLOBAL but no use. I also tried overriding the Ribbon CSS(from COREV4.CSS) but it was of no use as well. Does anyone have inputs on how to get this done? Any help is appreciated. Thanks.Regards, Gautam Kaikini, MCTS WSS 3.0 Application Development.

Change text in datagrid in databound, in wpf

Hi, i have a wpf datagrid, heres my datagrid   <dg:DataGrid x:Name="dataGrid" AutoGenerateColumns="false" ColumnHeaderStyle="{StaticResource columnHeaderStyle}" AlternationCount="2" RowBackground="Beige" RowStyle="{StaticResource rowStyle}" AlternatingRowBackground="LightBlue" HeadersVisibility="All" HorizontalGridLinesBrush="#DDDDDD" VerticalGridLinesBrush="#DDDDDD" Grid.ColumnSpan="2" Margin="0,0,0,26" IsReadOnly="True" ColumnHeaderHeight="30"> <dg:DataGrid.Columns> <dg:DataGridTextColumn Header=" Task Id" Binding="{Binding Path=TaskId}" Width="60" /> <dg:DataGridTextColumn Header="Order Description" Binding="{Binding Path=OrderDescription}" Width="120"/> <dg:DataGridTextColumn Header="Final Client Name" Binding="{Binding Path=ClientName}" Width="110"/> <dg:DataGridTextColumn Header="Order Date" Binding="{Binding Path=OrderDate}" Width="80"/> <dg:DataGridTextColumn Header="Task Description" Binding="{Binding Path=TaskDescription}" Width="130"/>

Masterpage with header and footer and buttons on header to change between silverlight and asp pages.

Hi, I would like to create a master page with a header and footer. The header contains buttons which call either an ASP page or Silverlight page. I want to be able to select a page and the relevant page is loaded. The problem I am facing is that the footer does not dock to the bottom unless I include a fixed height. Can someone help as to the best way of doing this. I am not sure if I need to use a masterpage for this or just a simple page? The following is my code on the master page:<head runat="server"> <title>Staff Profiles</title> <asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder> <link href="CSS/mainpage.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server" > <div id="container"> <div class="mainHeader" align="center"> <table width="920" height="120" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="10" rowspan="2"><img src="images/Header_01.jpg" alt="" width="10" height="120" /></td>

asp text change

i need to make a code that changes the text to a text from my database if i click on a href. and i don't know how can you guys help me? it is asp classic btw.

Can we change the "specify your own value" Text when you are using fill-in choice using javascript?


Can we change the "specify your own value" Text when you are using fill-in choice using javascript?

I need to change the text? If you guys know anything on this, let me know. 


change the forecolor of a text block inside a listView


Hello I'm new to WPF

I have a list view as follows:




<ListView Name

Internet Explorer Go back one page and Go forward one page buttons are disabled.


I have a .aspx page in my web site that when I run it the internet explorer back and Fotrth Buttons are disabled. Any Idea what could be causing this functionality.

Is it possible to change text orientation in InfoPath 2010?



I cant find how to change text orientation in InfoPath 2010. Who knows how to do it? I want my text has 90' orientation. There is no problem to do it in Excel. Is it possible to do in InfoPath2010? 

Is there any Way to change the header text of an template field dynamically


<asp:TemplateField HeaderText="Award name" >

i want to Assign the header text from code behind

is their any method or way to do this ??????




Browser Buttons disabled

i have two Views in a multiview. When I add the Ajax Extensions- Update Panel and Script Manager the forward and back buttons in my Browser are disabled. Just to make sure that 
the controls I mention update panel and script manager were at least part of the problem I removed them and my forward and back buttons in the browser were enabled.
Does anyone know what I can do to include the update panel and script manager to my page while still maintaining the desired functionality (Enabled) of my forward and back buttons in the browser.
Thanks for any help.

How to change text of TextBox, when i click into that TextBox



 i am developing a web portal.

my home page contain a search textbox with text "Enter key word", and i want this text will be flush if any one click on that text box.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend