Print Page | Close Window

EditCanceled Raised by Enter or Esc?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: .NET WinForms
Forum Description: Topics related to Codejock .NET Windows Forms products
URL: http://forum.codejock.com/forum_posts.asp?TID=14377
Printed Date: 27 September 2024 at 4:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: EditCanceled Raised by Enter or Esc?
Posted By: MakeIt
Subject: EditCanceled Raised by Enter or Esc?
Date Posted: 25 May 2009 at 11:09am
Hi guys,

at the Moment I make a Report Control where the user can dynamically create rows. When you click in the context menu on "New Item" it will created a new Row, the Focus jumps to a empty field in the Row and BeginEdit() will called. Now The User must enter the text for the field.

My Problem is that it should be impossible to create an empty field - means pressing Enter when the field is empty should provide an error message. But both - pressing Escape or pressing Enter in a empty field will raise the EditCanceled Event (in the second case - the previewText doesn't changed) and I don't know if the User pressed Escape or if he wants to create an empty item.

Have anybody a solution for this problem?

Codejock Version: Xtreme Suit Pro 12.0.2



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net