VB.NETでもC#でもいいんだけど、.NET Framework2.0以降でWindows.Formsなアプリを作る場合、 入力検証を行うようなときは、ErrorProviderを使いたいよね!*1というお話は、 .NETで飯を食っている人にとっては割と常識ではないかと思っていたのだが、実際のところそうでもないらしい。 未だにMessageBoxでいちいちエラー内容を通知してくれちゃっているとか・・。 オペレータさん、ウザすぎて使いずらいんじゃないだろうかってゆー。 そこで、ErrorProviderを利用した超適当なTextBoxExのコードを上げておく。 using System.ComponentModel; using System.Windows.Forms; namespace ClassLibrary1 { public interface IValidateCheck {