This example requires that a Text Box and Error Provider control have been created on a form.
This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept.
My problem is: When I edit stuff in the textboxes, then click the menu to issue "Save", the text from the last text box still hasn't issued its "Validating" method.
i tried from many sites but my issue is not yet resolved.
You can use a Data Validation Input Message to display a message when a cell is selected.
However, the font can't be changed, nor can message box size be controlled.
Doing so can cause your application or the operating system to stop responding.
For more information, see the WM_KILLFOCUS topic in the "Keyboard Input Reference" section, and the "Message Deadlocks" section of the "About Messages and Message Queues" topic in the MSDN library at