Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi
I'm trying to handle errors on a form with about two dozen fields using the VB.Net Error Provider control. I started by adding one for each user input field, but then I realised that three properties for each Error Provider were appearing in every other control on the form.

I suppose this isn't really a "problem", but after adding the 20 or so Error Provider controls I need, I'll end up with 60 additional properties in every other control on the form.

I can only assume I'm doing something wrong. I thought that by dragging an Error Provider onto a control it would associate itself with that control, but it's associated with the entire form instead.

My only other alternative is to add in a whole lot of labels, but I figured since the control was there....

Any advice would be appreciated.
Posted

I suggest you to Use ToolTip and ErrorProvider.
for this Check This link[^]
or you can try this CodeProject article [^]
to get your job done
 
Share this answer
 
Damn I feel like a noob. I didn't realise you could use the Error Provider on more than one control!!

I created two Error Providers - one for missing fields and one for format errors, gave them their own spiffy icons and it works like a charm.

Thanks so much!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900