Article View: borland.public.csharpbuilder.winforms.controls.using
Article #38Re: error provider
From: Marc Rohloff TeamB
Date: Tue, 23 Aug 2005 23:22
Date: Tue, 23 Aug 2005 23:22
15 lines
1845 bytes
1845 bytes
On Wed, 24 Aug 2005 07:42:26 +1000, Phil wrote: > I am looking at using the error provider for validation. I have got it > working for the onvalidatin/onvalidation events of the various bound > controls for most cases. However I was wondering how do you reset the > errorprovider when the user cancels? Do I have to keep track somehow of the > last control that set the error on the errorprovider or is there some easier > way? If you set the CausesValidation porperty of your cancel button to false then the validating events should never be triggered. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<tlzoh5vhsufx$.dlg@marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!nx01.iad01.newshosting.com!newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<430b9828$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,62c02f1b79a72cb9 X-Google-Attributes: gid1eff3c,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: error provider Newsgroups: borland.public.csharpbuilder.winforms.controls.using User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <430b9828$1@newsgroups.borland.com> Date: Tue, 23 Aug 2005 19:22:38 -0400 Message-ID: <tlzoh5vhsufx$.dlg@marcrohloff.com> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0534-1, 08/23/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.9.204 X-Trace: newsgroups.borland.com 1124839144 65.31.9.204 (23 Aug 2005 16:19:04 -0700) Lines: 15 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!nx01.iad01.newshosting.com!newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail