Building Better Software - One Line At A Time

Resizing the Select Branches “dialog”/semi-modal Panel in VS 2010 Branch Visualization

  One of the few annoying things about the Select Branches panel in Branch Visualization is...

Author: PermanentTan Date: 07/09/2010

Shortcut Keys for VS2010 Branch Visualization

  There are a few shortcut keys that can quite useful inside a branch hierarchy or tracking...

Author: PermanentTan Date: 07/09/2010

Go to Changeset from Team Explorer

In a previous posting, I mentioned that Ctrl+G in VS2010 brings up the new Go to Changeset dialog...

Author: PermanentTan Date: 12/14/2009

How to convert a Visual Studio 2010 Branch back to a Folder

Visual Studio 2010 extends the concept of a folder as a “first-class” branch and introduces the...

Author: PermanentTan Date: 11/20/2009

Go to Changeset for Visual Studio 2010

In previous versions of Visual Studio, hitting Ctrl+G from Source Control Explorer brings up the...

Author: PermanentTan Date: 11/20/2009

WPF TreeView Memory Consumption and Performance

One very simple thing you can do that can significantly reduce the memory consumption and...

Author: PermanentTan Date: 11/20/2009

Data Bind Using Only Code Behind

We are all familiar with the use of WPF Binding in XAML. For example, the following lines bind the...

Author: PermanentTan Date: 06/21/2009

Array as a WPF ConverterParameter

A WPF value converter accepts a value and an optional parameter. The parameter can be specified in...

Author: PermanentTan Date: 06/19/2009

Setting Initial Focus in XAML

Last time we looked at a tricky problem of setting the initial focus to a specific item in a...

Author: PermanentTan Date: 06/11/2009

Setting the Initial Focus to a ListView item

This blog describes the steps needed to set the initial keyboard focus to an item in a WPF ListView....

Author: PermanentTan Date: 04/29/2009

WPF ListView with Check Boxes and No Clipping

  WPF ListView with Check Boxes and No Clipping   Do you need a simple data-bound WPF...

Author: PermanentTan Date: 01/19/2009

Giving full trust (revised)

Newer version of caspol.exe expects a more precise URL specification. Here is the revised caspol.exe...

Author: PermanentTan Date: 11/12/2008

Giving full trust to a network share

I work on multiple machines and, very often, I need access to my tool sets on each machine that I...

Author: PermanentTan Date: 06/05/2008

Determine the last synced version for a folder in TFS

Have you ever need to find the last synced version of a folder in TFS? Here is a quick way: Change...

Author: PermanentTan Date: 06/05/2008

Diagnosing side-by-side problems on Vista

There have been times where a program failed to load due to missing dependencies or side-by-side...

Author: PermanentTan Date: 06/05/2008

How to share VS Macro Projects

One way to share VS Macro projects is to add the projects to source control and have all users...

Author: PermanentTan Date: 04/03/2008

Sorting the work items in the Pending Changes window

The work item channels displays the work items in the order specified by the selected query. This...

Author: PermanentTan Date: 02/11/2008

WPF Equivalent for WinForms Ampersand (&) to Prefix Access/Accelerator Character

WPF uses an underscore character instead of the ampersand character (like with WinForms) to prefix...

Author: PermanentTan Date: 01/22/2008

Getting a list of TFS files that are different since some date

Have you ever come across a need to find out which TFS version control files that are different...

Author: PermanentTan Date: 09/23/2007

How to set MyControl.X and MyControl.Y in a Windows Presentation Foundation (WPF) Canvas?

WPF elements (like Button and Rectangle) do not have the X and Y properties as in the WinForms...

Author: PermanentTan Date: 08/01/2007

Default work item query for the Pending Changes window

There has been a couple of requests about the logic for determining the default work item query in...

Author: PermanentTan Date: 06/06/2007

Resuming Conflict Resolution in Team Foundation Version Control

I have gotten some feedback about the perception that the get/checkin/merge conflict resolution...

Author: PermanentTan Date: 05/03/2007

Visual Studio Orcas March 2007 CTP - Folder Difference - Part 4

Visual Studio Orcas March 2007 CTP - Folder Difference - Part 4 In this installment, we'll wrap up...

Author: PermanentTan Date: 04/30/2007

Visual Studio Orcas March 2007 CTP - Folder Difference - Part 3

In this installment, we'll talk about Folder Difference integration in Visual Studio starting with...

Author: PermanentTan Date: 04/25/2007

Visual Studio Orcas March 2007 CTP - Folder Difference - Part 2

Let us start with the Folder Difference invocation. Both Power Toy TreeDiff and Orcas Folder...

Author: PermanentTan Date: 04/11/2007

Visual Studio Orcas March 2007 CTP - Folder Difference - Part 1

Through out April 2007, I'll be posting details about the new feature Folder Difference currently in...

Author: PermanentTan Date: 03/29/2007

Preparing for Vista Backup and Restore - Part 2 of 2

Happy New Year! Last time we finished with using CompletePC to backup the OS partitions/drives as...

Author: PermanentTan Date: 01/15/2007

Preparing for Vista Backup and Restore - Part 1 of 2

Happy Holidays Everyone! What could be better than spending the Holidays backing up your computers?...

Author: PermanentTan Date: 12/22/2006

Customizing the Team Foundation Tree Difference (TreeDiff) Power Toy

Welcome back! Before we get started on Tree Difference customization, I would like to bring forth...

Author: PermanentTan Date: 09/13/2006

Centering a MessageBox

Message boxes are centered on the desktop. Occasionally I get a request for C# code for centering a...

Author: PermanentTan Date: 06/26/2006

AutoLayout Basics for TableLayoutPanel

Jason Prickett has put together a step-by-step how-to for using the TableLayoutPanel container. The...

Author: PermanentTan Date: 04/26/2006

AutoLayout by Examples - Part 4 - Shrink

Shrink: Mockup of a popular DVD Compression Program Project Name: Shrink.csproj. Download source....

Author: PermanentTan Date: 03/08/2006

AutoLayout by Examples - Part 4 - XP Calculator

XP Calculator: Mockup of the XP Calculator Project Name: Calculator.csproj. Download source....

Author: PermanentTan Date: 03/08/2006

AutoLayout by Examples - Part 3 - Dialog 8

Dialog 8: Custom control inside a dialog Project Name: Channel.csproj. Download source....

Author: PermanentTan Date: 03/08/2006

AutoLayout by Examples - Part 3 - Dialog 7

Dialog 7: Dialog containing two splitter-separated side-by-side lists Project Name:...

Author: PermanentTan Date: 03/08/2006

AutoLayout by Examples - Part 3 - Dialog 6

Dialog 6: Resizable dialog containing two vertically splitter-separated lists Project Name:...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 3 - Dialog 5

Dialog 5: Resizable dialog containing two equaled-size vertically stacked lists Project Name:...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 3 - Dialog 4

Dialog 4: Horizontally resizable dialog with growing/shrinking label Project Name:...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 3 - Dialog 3

Dialog 3: Fixed-sized dialog containing GroupBoxes Project Name: GroupboxesFixedDialog.csproj....

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 3 - Dialog 2

Dialog 2: Horizontally resizable dialog with textboxes Project Name:...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 3 - Dialog 1

Dialog 1: Resizable dialog containing auto-sized label and list Project Name:...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 2

Samples A companion of this document is the actual source code of a Visual Studio solution...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples - Part 1

AutoLayout by Examples Author: Tan Phan Contributors: Chad Boles, Jason Prickett History: Date...

Author: PermanentTan Date: 03/07/2006

AutoLayout by Examples

Auto-laying out dialogs using the WinForms TableLayoutPanel control is brand-new in Visual Studio...

Author: PermanentTan Date: 03/07/2006

PermanentTan? You sound like a beach bum!

Well... yes. I was beach-bound for many years on various locations in NC enjoying windsurfing. I do...

Author: PermanentTan Date: 02/10/2006