Print Page | Close Window

ESC in PropertyGrid

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=13191
Printed Date: 27 September 2024 at 1:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ESC in PropertyGrid
Posted By: isma
Subject: ESC in PropertyGrid
Date Posted: 16 January 2009 at 7:58am
Hello,
 
If I type only letters in a Integer Item of PropertyGrid...
If I press ESC, the new value is the old value. This works fine.
If I selected other item, the new value is 0.
 
Can I tell me how solved this problem.
 
Thanks in advance.
Isma



Replies:
Posted By: Aaron
Date Posted: 16 January 2009 at 1:28pm
Hi,
 
First of all, don't allow user to enter chars into PropertyGridNumber
 
Set ItemProp = Item.AddChildItem(PropertyItemNumber, "Number", 100)
       ItemProp.EditStyle = EditStyleNumber
 
If user presses ESC now, the initial value will be shown.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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