Timers Prior to Async/Await Pattern of C# 5.0

,
October 9, 2017 / No Comment

There are multiple ways to use Task.Delay() when a timer is required.
For scenarios prior to .NET 4.5, several timer classes are available, including System.Windows.Forms.Timer, System.Timers.Timer, and System.Threading.Timer.
The development team designed System.Windows.Forms.Timer specifically for use within a rich client user interface. Programmers can drag it onto a form as a nonvisual control and regulate the behavior from within the […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#, Toubleshooting

Getting started with Model-View-ViewModel (MVVM) pattern using Windows Presentation Framework (WPF)

,
September 19, 2017 / No Comment

The Windows Presentation Framework (WPF) is built to take full advantage of the Model-View-ViewModel (MVVM) pattern. Though it is possible to create WPF applications without using the MVVM pattern, a little investment in learning can make building WPF applications much simpler.
If you are just getting started with WPF I would suggest taking a look at this getting started guide.
Read more

AUTHOR: CATEGORY: C#, WPF

Locking a Block of Code With an Integer

,
June 27, 2016 / No Comment

I was talking with a developer recently who was convinced that you could use a static integer variable to lock a block of code merely by casting it to an object, like this

First it must be noted that an integer cannot be used by itself in a lock statement because it is a value type. But when you […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Visual Studio Keyboard Shortcuts Wrap-up (MSDN Flash – Feb. 2, 2009)

,
January 23, 2009 / 1 Comment

In this edition, I am going to wrap up a few loose ends with a selection of miscellaneous keyboard shortcuts and links to a summary keyboard shortcut poster.
Debugging:
I realize that none of you would write bugs, but in case you meet someone that does or perhaps on occasion you need to debug some code in order to explain […]
Read more

AUTHOR: CATEGORY: .Net, Headlines

Visual Studio Keyboard Shortcuts for Editing (MSDN Flash -Jan. 19, 2009)

,
January 3, 2009 / 2 Comments

Knowing all the keyboard shortcuts for editing shows off our programming prowess, just like it would it did for programmers that could use VI.   Rather than describing the well known ones like CTRL+F and CTRL+H, I am going to review some that are more unique to Visual Studio Programming:
Find

CTRL+I/CTRL+Shift+I
Incremental Search: Turns on incremental search so that […]
Read more

AUTHOR: CATEGORY: .Net, Headlines

Visual Studio Keyboard Shortcuts for Compiling (MSDN Flash – Dec. 29, 2008)

,
December 20, 2008 / No Comment

There is not much point in writing code if you can’t compile it so, in this edition’s keyboard shortcut tips and tricks, we are going to discuss compiling your code.  For both Visual C# and Visual Basic schemes, you can compile the entire solution using Ctrl+Shift+B.  However, three keys (requiring two hands and an elbow) is a little unfriendly for […]
Read more

AUTHOR: CATEGORY: .Net, Headlines

Unattended Installation of Team Foundation Server 2008 on Windows 2008 with SQL Server 2008

,
December 15, 2008 / 1 Comment

The following are my instructions for installing a new Team Foundation Server 2008 with SP1 onto Windows 2008 with SQL Server 2008. Throughout, I followed the
TFS install guide and tried to automate where it didn’t distract me too much from the task at hand. I followed the Single-Server Team Foundation Server Installation.Folder LayoutFor the scripts to work successfully, […]
Read more

AUTHOR: CATEGORY: .Net

SQL Server 2008 Install Nightmare

,
December 9, 2008 / 15 Comments

It all started with an installation of Visual Studio 2008 SP1, which included SQL Server Express 2005.  From there I wished to install SQL Server 2008 Standard on the default port and upgrade SQL Server 2005 Express to SQL Server 2008 express.  Unfortunately, this proved to be a troublesome desire.  I have no idea what the cause is exactly, except […]
Read more

AUTHOR: CATEGORY: .Net

MSDN Flash: Keyboard Visual Studio Tips & Tricks for Dec 15. 2008

,
December 5, 2008 / No Comment

Originally, I was going to focus on shortcuts for the various build/compilation options within Visual Studio 2008.  However, things become a little more complicated in terms of which keyboard shortcut to use because it depends on your keyboard mapping scheme.  In this edition, therefore, I am going to discuss the Keyboard Options dialog – where different keyboard schemes are available […]
Read more

AUTHOR: CATEGORY: .Net

MSDN Flash: Keyboard Visual Studio Tips & Tricks for Nov 17. 2007

,
November 18, 2008 / No Comment

Frequently, while browsing code, we want to drill down into a method to see the implementation and then jump back out again to continue browsing code at the caller. One invaluable keystroke for doing this is F12. Placing your cursor on any identifier, you can use F12 to drill into its declaration. This works both for types as well as […]
Read more

AUTHOR: CATEGORY: .Net