.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

DefaultValue in properties window displayed as bold / not bold ?

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :ASP.Net


I would like to know why somethimes DefaultValue in properties window is displayed in bold text and somethimes in normal weight text? What i know is that the Value in Properties Window should display bold only if the Value is different than DefaultValue.

So i have a situation, where i need to set DefaultValue's and i'm successfully setting the boolean Value but failing in Integer value...


<cc1:TimePickerGTI ID="TimePickerGTI1" runat="server" />

custom server control:

        Private _ShowSeconds As Boolean = True
        <Browsable(True), Category("Behavior"), DefaultValue(True), Description("Show seconds.")> _
        Public Property ShowSeconds() As Boolean
                Return _ShowSeconds
            End Get
            Set(ByVal value As Boolean)
                _ShowSeconds = value
            End Set
        End Property

        Private _StepHour As Int32 = 1
        <Browsable(True), Cate

View Complete Post

More Related Resource Links

Making textarea bold on IE7



I need to make the textarea content bold.

<b><textarea rows=2 cols=5>some text</textarea></b>

This works on IE6 browser but not on IE7.

Any ideas?




link buttons are not working in Blackberry bold (9650, 9700)



we have deveoped a mobile application . and have some link buttons  ,thease linkbuttons are working fine with blackberry curve but not working when we use Blackberry bold (9650, 9700)


DropDownList to display values from Two Tables - bold sub heading and normal Text

Hello I hope I am not asking simple one.  SUPPORT SERVICES<     Computing Service    Library or Data Engineering    Civil Engineering    Electrical Engineering  I have the data to display in a DropDownList control shown as above. There is a distinct category Type(example Support Services) and Category Name i.e., Computing Services. I do not want to hard code the values into DropDownList control. I like to get the data from database to display as shown in above Table. Note that Category Type should be displayed in Bold and Category Name in normal Text. Question: In order to achieve the above, 1. How many database Tables and relationships between them  2. Query the data to display in the above format in drop down 3. how should be the code behind i.e, DataTextValue and DataValueField for DropDownList. Please provide with useful code snippets or references. Thanks,

Windows Workflow : Activity Binding Properties Window Ellipses button not visible for one property

I have created a custom activity, when I am using this activity in workflow designer I am not getting the ellipsis button to select a property.  I am getting the ellipses button for first property LongValue while not getting the option for "NavigationUrl" property. This is the code for my custom activity. public partial class SetLongAsResult: Activity {         public SetLongAsResult() { InitializeComponent(); }         public static DependencyProperty LongValueProperty = DependencyProperty.Register("LongValue", typeof(long), typeof(SetLongAsResult));           public static DependencyProperty NavigationUrlProperty = DependencyProperty.Register("NavigationUrl", typeof(string), typeof(SetLongAsResult));           [Description("long value to be returned")]         [Category("Set Result Data")]         [BrowsableAttribute(true)]         [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]         public long LongValue         {             get             {         

Font on Page Becomes Bold After Javascript Alert -- Why?

In .Net 3.5   I have a web page that has several checkboxes, text boxes, dropdown boxes etc on it.  When a user clicks on the search button, I run some basic validation on the page. If any validation fails, I invoke a javascript alert letting them know what they did wrong and I return them to the page. However, when the page reloads, all of the text on the page is now larger and bold, even the text inside the menu and which resides in a master page.  I removed every instance of the word "bold" from the project but it still becomes bold after the alert fires. Any idea what could be causing this to happen?  It shouldnt matter but here is a sample of the alert I use: Response.Write("<script language='javascript'>alert('You must check at least one column to display');</script>") Any help is greatly appreciated. thanks

I installed .net FrameWork 4.0 (for Vista/Windows 7) and my Desktop Font is BOLD! (sometimes)

So at first, I installed the below: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en Which is .net framework 4 (web installer), then I believe I tried the standalone. But then after I did the Redistributable 2.0 installer for Windows XP SP2, but I have SP3, does that just mean its included already? (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en)   My friend told me I needed this before I install Office 2010... I dont know!! So after I installed these different .net frameworks and then office. I have Mozilla crashing me, I disabled the framework assistant plug-in and still happens. Then, my FONT for desktop and start menu icons turns (larger/bold) but not within folders, only what shows without clicking into anything.... so.. 1.System Restore is not an option, that restore point is overwritten now... 2. This is not an appearance tab/settings issue with a larger DPI set or anything like that... Because, sometimes I click on my computer to restart and the font is all fine and will continue to be, othertimes, some program or something causes this to happen, I restart the PC and then its fine again... Can anyone tell me what I did wrong and how to fix it, easily.. if possible :) I have searched all over and while I've noticed people with simila

Display records in bold coming from mysql database

hi,I have Mysql database.In that some records status is New.now,I bind database table to Listview(asp) control.What's my problem is,the New status records(from Mysql database) text in Listview(after binding) is visible in bold format.how to do this??Thanks in advance.

How to make bold/regular font text the same width

Hi! In Excel the width of texts in bold font cells have the same width as regular font ones. My question is how to do that programmatically (in a DataGridView, labels, paint event, anywhere...). I can do this if I draw the string twice in the paint event (1 pixel shift for the second draw), but it requires 2 drawings of course, which I think is not too efficient. Is there any other solution? Some trick in creating the bold font? Thank you, Feri

Change a controls properties from another window

I have a WPF App that opens a window (MainWindow) and has a button control that creates a new instance of a Window2 class and calls window2.show() When I click this button I disable it from within MainWindow code. The question I have is when the Window2 onclosing event is called  how do I access the Mainwindow button properties to enable it again. TIA Mike

Horizontal Scrollbar not fully displayed in report window

I have a report (using SSRS 2005) which displays both the vertical scrollbar and horizontal scrollbar.  The report has lots of columns. The problem is that the horizontal scrollbar is only half displayed (height wise).  I've tried resizing the report window but it doesn't change how much of the horizontal scrollbar is displayed. I've tried playing with the report settings (margins, body size, etc) but can't seem to get the entire horizontal scrollbar to be visible.  The users don't like this because the viewable part is hard to grab onto to scroll. How do I fix this? Thanks, John

RichTextbox bold

hey, I am having trubble amkign the text in the richtextbox bold..I used this code: thisrichtextbox.SelectionFont.Bold = true; but it gives me this error: Property or indexer 'System.Drawing.Font.Bold' cannot be assigned to -- it is read only     Thanks:)

excel desination heading to be in bold


Hi Team,

I have an issue excel destination heading using a script and execute sql task.

I am creating the excel dynamically but i want the heading to be in bold and the data to be normal. do i need to set some property to achieve this.



Changes to Properties in the Property Window not Updating in HTML Control


I'm using VWD 2010 Express and have found that when I change a property like AutoPostBack from within the property window the corresponding tag (<asp:TextBox...>) was not updated with the property change to the tag.

Is there a setting that I can change in the VWD properties that will enable changes through the property window for a control to automatically update the HTML tag for that control?

Repeating table header text is bold and won't go


I have an InfoPath 2007 form that I have published to a SharePoint 2010 site with Forms Services.

When I open the form in the browser, the column titles in each repeating table appear in bold text. No matter what I do, I cannot make this go away. I have tried the obvious things, such as pressing the CTRL+B or CTRL+SPACE keys. I can apply or remove underline or italics but not the bold.

We are still in changeover period so I can publish this to a MOSS site (no Forms Services) and the table headers are not bold when they open in the InfoPath client.

Does anyone have any ideas?


Partially Bold Text in SSRS 2005 using Expression ?



I am using SSRS 2005.

I have one requirment. I need to Partially Bold some part of Text in column.

Below is the Example.

Name < - -- Column in SSRS 2005 Report.

This column contains combination of Last Name and First Name. All Database record contains Last name , while in some record our requirment is to append First Name with that.

That is i aleady handled using Nested IIF Expression.

Now, i want to display appended First Name in normal while all Last Name whihc is Database Field in BOLD Font.

How is it possible ?


Preserve underline, bold, and italics when importing from excel to .net app?


I've got an excel file being saved to do, everything works fine, but one of my cells I need to preserve underline, bold, and italics. I found this http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_25022797.html but this is a script for using in Excel. I need something just like it but running on the excel File when they upload it.

Right now I have this code:

Excel Connection:

Protected Function ExcelConnection() As OleDbCommand

		' Connect to the Excel Spreadsheet
		Dim xConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
		   "Data Source=" & Server.MapPath("~/temp/ExcelImport.xls") & ";" & _
		   "Extended Properties=Excel 8.0;"

		' create your excel connection object using the connection string
		Dim objXConn As New OleDbConnection(xConnStr)

		' use a SQL Select command to retrieve the data from the Excel Spreadsheet
		' the "table name" is the name of the worksheet within the spreadsheet
		Dim objCommand As New OleDbCommand("SELECT * FROM [Accomplishments$]", objXConn)
		Return objCommand

	End Function

How to write expression to get title name in bold and value in normal in a single Text Box



I have a requirment, where I need to display like Service Provider : Ram in one text box. I have written expression   ="Service Provider :"+Fields!Name.Value for this but I am getting any properties to make Service Provider : in bold. Please anyone can help me out.

For example:

If I want to display Service Provider  in Upper Case and Fields!Name.Value In Lower Case I can write Below expression to get this.


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