Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - ESC in PropertyGrid
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ESC in PropertyGrid

 Post Reply Post Reply
Author
Message
isma View Drop Down
Newbie
Newbie


Joined: 15 January 2009
Location: Spain
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote isma Quote  Post ReplyReply Direct Link To This Post Topic: ESC in PropertyGrid
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.