Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Code   (RSS)
Today I saw some C# language syntax that made me think, "hey, wait a minute, I didn't know you could do that!", so perhaps it'll be new to someone else too.  Honestly, I don't know how I missed this memo. Let's start off with the code, Read More...
2 Comments
Filed under:
Visual Studio 2008 has great Office 2007 integration with the ability to essentially open an Excel worksheet from within VS and add C# code as if it was a Windows Forms application.  Just today an acquaintance asked how to pull data off the web and Read More...
12 Comments
Filed under:
LINQ is out in strength and I've got to admit, even though I talked to Anders Hejlsberg over three years ago about it, I've just recently started using it in my own code. There's a lot out on the net about it, but here's my 2c to help people get started. Read More...
5 Comments
Filed under:
I recently had an app that I used the VSTS Profiler on to find that a significant portion of time was spent comparing some long strings. I was using String.Equals(string a, string b, StringComparison.InvariantCultureIgnoreCase) since I didn't care about Read More...
5 Comments
Filed under:
When you search amazon.com, it takes you to product pages that have a real long URL. It can be nice and short, so here's a little regular expression to shorten it. Long URL: http://www.amazon.com/Professional-Visual-Studio-System-Programmer/dp/0764584367/ref=sr_1_1/104-4732806-7470339?ie=UTF8&s=books&qid=1179873697&sr=8-1 Read More...
1 Comments
Filed under:
HTML Applications (HTAs) are DHTML pages that have full local privileges.  They've been around for a long time, but a colleague recently inquired so it was worth remembering.  They're frequently used for splash screens on CD autoruns or as frontends Read More...
1 Comments
Filed under:
Say you have a work item type (WIT) that represent a big task, like a Feature, then you have individual Task work items that make up that feature. You want to update the work completed and remaining of the tasks, and have that roll into the corrosponding Read More...
2 Comments
Filed under: ,
I was creating an app that saves URLs copied to the clipboard into an XML file. This little bit of code came in handy so I thought I'd be worth sharing. This code checks to make sure the URL is to a valid HTML page by first checking the type of request, Read More...
6 Comments
Filed under:
.altrow {background: ;} .appname {font-size: 10pt;} .boxed {border: black 1px solid; padding: 4px; background: aliceblue;} tr.header {background: navy; font: bold 11pt arial; color: white;} td.header {padding: 2px; padding-left: 8px;} .title {font: bold Read More...
2 Comments
Filed under: ,
Gosh I love extensibility. I'd so much rather take the time to write an app to automate a 1min task, if I had to do that task over and over again. MS Office has great extensibility. Here's a quick example of an app to list out all your contacts that don't Read More...
3 Comments
Filed under:
Perhaps you're familiar with such URL protocol handlers such as http://microsoft.com , ftp://user:pass@server outlook:Contacts , file://http://www.coad.net/blog/images/Greenstone.bmp , ms-help://... Want to make your own client-side URL handler? Maybe Read More...
10 Comments
Filed under:
When copy/pasting from MS Word, the HTML it generates is really messy and can't be used verbatim. This has been a pain of mine and many others. I've found that many 3rd party controls, and some client-side blogging tools (like BlogJet) have a miraculous Read More...
1 Comments
Filed under:
Here are two project templates that I created and use on an almost daily basis that I packaged up to share. About a year ago I posted one of my project templates for VS03.NET, “ Creating Quick Tests in C# ”, that became the top VS add-in download Read More...
4 Comments
Filed under: ,
I was checking out an MSDN Magazine post on “ Visual Studio Add-Ins Every Developer Should Download Now ” and came across this great VS Plug-in for managing window layouts, VSWindowManager PowerToy . I use a laptop for development, and while Read More...
1 Comments
Filed under: ,
This is a cool little plug-in from DonXML for VS that lets you run XPath statements against the currently opened XML document. I’ve been waiting for something like this!! I write a lot of XPath and this sure makes testing the expressions sooooo Read More...
3 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker