How to use error provider in C#
Here, the code explains how to validate empty string using error provider in c#