index > Team Foundation Server - Work Item Tracking > Readonly field and emphasizing font color

Readonly field and emphasizing font color


I have a customized work item and I am displaying the created by and date created fields. Both of the read only and that is great.

Created by is displayed with black font and gray background, while the created date is dark gray on a gray background and difficult to read. Is there a way to make the date field color darker. I tried to find attributes but to no avail.

Mile Petrov
What controls are you using for these fields? Are you using FieldControl for one and DateTimeControl for another? That might explain different UI behavior for both readonly fields. You can try using FieldControl for both.


http://blogs.msdn.com/narend
Naren Datha - MSFT

Thanks for the reply. We kept it at as a DateTime control type in order to get the date only (without the time). If I change it to a FieldControl as suggested, I get the desired result and it satisfies the display issue of the color.

Will I have to do something programmatically in order to get rid off the time in the display in case I leave the field as a FieldControl?

Mile Petrov

Unfortunately, I don't think you can do anything to programmatically get rid off the time for FieldControl. If you really want to get rid off time then you can use DateTimeControl with the following two attributes.

Format="Custom" CustomFormat="mm/dd/yyyy"

-Mohammad

Mohammad Iqubal - MSFT
reply 4

You can use google to search for other answers

 

More Articles

Areas on Scenario
My Tasks are getting deleted when checking in code
TFS RC: Error loading Microsoft.TeamFoundation.WorkItemTracking.S...
Plugging into Team Foundation Server?
How to assign one workitem to two people?????
WITIMPORT: Cannot complete the operation. An unexpected error occ...
Connecting to work items with project
Customize Query Variables
Removing User option under "Assigned To"
Work Item object model - problem with editing new reference field
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Estimate Extensibility
query doesn`t work. problem < today
Work Item Tracking Custom Controls
Excel Plug-in for Office 12
Copied work items do not show up in quer…
Getting Email body part from an email us…
How to set permissions to a field in a w…
Upload Bugs Database
getting associated changesets for work i…
Accessing work item history from API
CreateNewWorkItem
About Work Items
make Task Link tab as a required field
Display fullpath with filename in the WI…
Error - Object reference not set to an i…

Hot Articles

No way to update AreaPath dropdown throu…
Area not refreshed in Work Items - TFS RTM
Work item type for new feature requests?
Query for attachments
Workflow items: First required then read…
Extend work item by adding new control t…
Project to TFS sync problem
WSS issue list and TFS Work Items, any i…
Migrating From Other Bug Tracking System…
Can I edit scenarios on Project Portal?
Subscribing to events
Locating Work Item Attributes In TFS Dat…
Why Cant I enter start date and finish d…
calculating hours with subtasks
Why there is no Date related fields when…

Recommend Articles

Change Project in a Excel file
Office table Pivot
How to display Specific Revision of work…
how do you delete defects?
Default TFS event subscriptions & ce…
Using Work Items for enhancement requests
Incorrect results view due to COPY rule
Can't browse work items
Handling simultaneously WorkItemChanged …
Automatic email notification when Work I…
Strange Problem --- SQL Server 2005 and …
WSS issue list and TFS Work Items, any i…
Work Item Web Access
How do I specify dependancies (and impor…
Set new field - Owner inside of WI and p…