This is an easy (as can be) tutorial to show how speech recognition is done with in C#. On the form the button is pressed, and within 5 seconds say your speech. In this example Q and B act as commands. The code filters the recognised words looking for the letter Q and B.
File contains the source code-use this to make the simple form with the named elements in the image-in a new winforms program.
The pdf file in the zip file explains how to link the voice recognition to a database.