Here is a cool little demo:
http://johnpapa.net/demos/chordcalc/demo.html
You can play individual notes by clicking on them and here the entire chord. Sweet little app. Here is more about it along with the code:
http://www.simple-talk.com/dotnet/.net-framework/using-silverlight-to-build-a-guitar-chord-calculator/