Home > Code > C# Coding Problems

C# Coding Problems

October 19th, 2011 Leave a comment Go to comments

Now I am coding more in C# and having the usual coding problems, I am finding that web searching helps to find the answer but often leads to out-dated advice.

The latest example was how to make the Enter/Return key fire the OK button on a dialog form. Most of the web search results lead me to coding solutions or to set a non-existent property of the submit button. In the end I found a very simple solution on the MSDN documentation site that described how to set the AcceptButton property for the Dialog Form to the submit button of your form. This can be done in the visual design interface so is very easy to do when You know how.

So a piece of advice to take from this is to try and seek your C# coding problem solution via the official documentation first.

Post to Twitter

Categories: Code Tags:
  1. No comments yet.
  1. No trackbacks yet.

CommentLuv Enabled