Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

Textbox validation, esc key

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marko Bozikovic - 15 Feb 2007 15:31 GMT
Hi all,

I have a bit of a problem...

I have a simple modal form with some textboxes. I handle Validating event for
some of them, to check data format.

Form has OK and Cancel buttons, AcceptButton and CancelButton properties set.
Cancel's CausesValidation is set to false.

When I click the Cancel button, validation event is not fired and form closes
even if current textbox contains invalid data. However, when I press Esc key,
validation event is fired and the form will not close if current textbox
contains invalid data.

I didn't have any luck finding a standard way of handling this. Can anyone help?

TIA,
Signature

Marko
ICQ: 5990814

I'm not under the alkafluence of inkahol
that some thinkle peep I am.
It's just the drunker I sit here the longer I get.

Patrick Steele - 16 Feb 2007 03:44 GMT
> Hi all,
>
[quoted text clipped - 12 lines]
>
> I didn't have any luck finding a standard way of handling this. Can anyone help?

http://tinyurl.com/ypxof7

Signature

Patrick Steele
http://weblogs.asp.net/psteele

Ivica Muruzovic - 21 Feb 2007 08:12 GMT
jesi li našao rešenje?

>Hi all,
>
[quoted text clipped - 14 lines]
>
>TIA,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.