vastsocial.blogg.se

Errorprovider visual basic
Errorprovider visual basic




So if you had five TextBox controls on a form, two of them can not be empty, set them up via AllowEmptyValue and IsRequiredMessage, the remaining TextBox controls will not be affected. The ErrorProvider is setup in Sub InitializeComponent that is shown to the right of a TextBox where you have set AllowEmptyValue to False and IsRequiredMessage.

errorprovider visual basic

IExtenderProvider Interface as shown below.

errorprovider visual basic

One thought is to create a class that extends all textBox controls via






Errorprovider visual basic