Ok thanks, that's just what I was looking for!
However I tried to use a Try and Catch method and i can't see why it isnt working

Code:
try
                      {
                          outputBx.Text = "" + d[inputBx.Text];
                      }
                      catch (Exception ex1)
                      {
                          outputBx.Text = "Not found";
                      }
Any help on this? or how i'd use a TryGetValue. I only ask to use this instead of the contains key method is because i've been told that TryGetValue is a lot more efficient than contains key for use with a dictionary.