Stephen Toub

.NET, MSDN Magazine, and other Adventures in Life

  • Stephen Toub

    Low-Level Keyboard Hook in C#

    • 209 Comments
    I answered a question today where someone asked for an example of setting a low-level keyboard hook with C#. I actually have an example of doing so in my May 2006 MSDN Magazine article on Managed Debugging Assistants , but the example is purposefully...
  • Stephen Toub

    Edit DVR-MS Metadata

    • 83 Comments
    I was asked earlier this week if I knew of any tools that would let one easily edit the metadata associated with a DVR-MS file. Specifically, the person wanted to edit the title and description of a recorded show. There may very well be such a tool out...
  • Stephen Toub

    Fun with DVR-MS (now on my blog)

    • 46 Comments
    Several years ago, I wrote an article for MSDN on programming against the DVR-MS file format. I'm very pleased with how well the article was received, and to this day I get a lot of people writing to me about the article. Unfortunately, recently the article...
  • Stephen Toub

    Low-Level Mouse Hook in C#

    • 66 Comments
    After my last post on implementing low-level keyboard hooks in C# , Soumitra asked if it was possible to implement a low-level mouse hook in C#, too. Sure. Here is an example that will print out the location of the mouse every time you press the left...
  • Stephen Toub

    Downloadable MSDN Magazine

    • 6 Comments
    MSDN Magazine now in CHM...
  • Stephen Toub

    DVR-MS: Adventures in Closed Captioning

    • 84 Comments
    I finished the code for this project months and months ago, and I had every intention of writing a full MSDN article describing the ins and outs of what I’d accomplished, but time seems to have gotten away from me. Rather than let the code languish any...
  • Stephen Toub

    Preview Handler Association Editor

    • 69 Comments
    I received an email from MSDN Magazine subscriber Oren Novotny thanking me for my preview handler article in the January 2007 issue of MSDN Magazine . Oren also wondered whether a tool could be written to make it easy to edit preview handler registrations...
  • Stephen Toub

    Fun with DVR-MS

    • 87 Comments
    My latest article for MSDN Online is now available at Fun with DVR-MS ! A bit on the long side, but in it I delve into working with DirectShow and DVR-MS files (the recorded television files generated by Windows Media Center) from managed code, and I...
  • Stephen Toub

    StringCollectionEditor

    • 14 Comments
    Anton asked about design-time editing for the Words property (a StringCollection) of my ImageHipChallenge control . It's a good question. I actually intended to adorn the property with [Browsable(false)] so that the property wouldn't show up in the PropertyGrid...
  • Stephen Toub

    Position Changer Add-In updated for Windows XP Media Center Edition 2005 Update Rollup 2

    • 49 Comments
    Today, the Media Center team released Update Rollup 2 for Windows XP Media Center Edition 2005 (you may have heard of the update referred to previously as "Emerald"). Update Rollup 2 includes a plethora of modifications to improve the stability, reliability...
  • Stephen Toub

    Position Changer Add-In updated for Media Center in Windows Vista

    • 70 Comments
    Back in early 2005, I wrote an article for MSDN on implementing add-ins for Windows XP Media Center Edition 2005 . As part of that article, I implemented an add-in that made it easy to jump around in a recorded TV show, video, or music file using the...
  • Stephen Toub

    OutlookContactProvider

    • 53 Comments
    Back in May , I wrote an article for the Office Developer Center on MSDN on an idea I had for creating Outlook Calendar Providers (and later demonstrated how to write an additional provider for this to allow Windows XP Media Center 2004 recording schedules...
  • Stephen Toub

    Pirates of Penzance

    • 5 Comments
    A fantastic show!!!...
  • Stephen Toub

    .NET Passport PAG

    • 5 Comments
    New PAG for .NET Passport integration into existing environments...
  • Stephen Toub

    Fun with AudioVideoPlayback

    • 23 Comments
    I'm sure I'm not alone in that I keep a laundry list of personal coding projects I want to work on when I get free time. Most of them are fairly short and only take a few hours to complete. We finished work on the June issue of MSDN Magazine yesterday...
  • Stephen Toub

    Generic Levenshtein edit distance with C#

    • 10 Comments
    A friend of mine asked me about common algorithms for determining string similarity. One of the most well-known string similarity algorithms is the Levenshtein edit distance algorithm, possibly because it's frequently used in computer science algorithm...
  • Stephen Toub

    Error 2869 when installing preview handlers MSI

    • 7 Comments
    If you're getting an error with error code 2869 when installing the sample preview handlers associated with my preview handler article from the January 2007 issue of MSDN Magazine , make sure you're following the directions in the README file. Open a...
  • Stephen Toub

    Blocking queues

    • 19 Comments
    In many concurrent systems, one thread performs some work, the result of which another thread consumes. This producer/consumer pattern is frequently implemented on top of blocking queues. If you examine the behavior of System.Collections.Queue and...
  • Stephen Toub

    ASP.NET Web services test page

    • 16 Comments
    Did you know it's possible to customize the test page auto-generated for Web services in ASP.NET? For example, let's say you wanted to order the WebMethods such that they're displayed in alphabetical order. You can modify the DefaultWsdlHelpGenerator...
  • Stephen Toub

    Time Travel with Media Center

    • 25 Comments
    One of the features I've wanted for a while now in Media Center is the ability to easily jump around within media. I have a bunch of family home videos on my machine, and it can be frustrating to navigate to particular moments that I want to show to family...
  • Stephen Toub

    Fun with DVR-MS Follow-up

    • 24 Comments
    I've received some very nice feedback on my DVR-MS article ... I'm glad people are finding it so informative! I did want to call out one thing about the sample code. Buried in the middle of the article (when discussing WmvConverter) is a sentence:...
  • Stephen Toub

    Recursive iterator performance

    • 9 Comments
    Just got back from a very successful week at WinDev in Boston. Not only was the conference good, but it was great being back in Boston for the Red Sox victory. Lots of folks at the conference asked me if I was a Yankees fan as I currently live and work...
  • Stephen Toub

    MSDN Magazine on the go...

    • 8 Comments
    Scott found a cool .chm reader for the Pocket PC written by Peter Tewkesbury. Since all of the current year's issues of MSDN Magazine are made available in CHM format, you can easily take multiple issues of the magazine with you on the train, on a plane...
  • Stephen Toub

    Free MSDN Magazine subscription to MSDN Premium subscribers in the US

    • 11 Comments
    I was chatting with a few Microsoft folks last week, and they asked me if they could get a discounted rate on MSDN Magazine. (Not that it's expensive to begin with; at $35 if you buy it through the MSDN Magazine Web site, and at $25 if you buy it through...
  • Stephen Toub

    Custom Calendar Providers for Outlook 2003

    • 19 Comments
    I have been playing around with this concept for quite a while and finally decided to put it down in an article on MSDN: Custom Calendar Providers for Outlook 2003 Outlook 2003 has really cool integration with SharePoint in that it can consume SharePoint...
Page 1 of 6 (150 items) 12345»