I want to know when the user clicks the menu item he should be able to know the direct X version installed on his machine?

I want to code this in C# in VS2008.

What should i write in the menu item click event?
 Am a beginner in C#,so dont know where to start from..

can anybody please help?
Thanks..