Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Provider

Status
Not open for further replies.

besto1a

Programmer
Aug 20, 2006
41
GB
How do I cancel a errorprovider, i have a form where all the fields are validated by a error provider, but if i just want to close the form I cant unless all the fieds are completed correctly, So can i just put a button on my form that just closes the form without refering to the erorrprovider
 
All the ErrorProvider does is to set the form closing Cancel argument to True.

To counteract this, in the FormClosing (or Closing if v1.1) event just put e.Cancel = False.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top