Print Page | Close Window

PropertyItemEnum is not case sensitive?

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=8091
Printed Date: 21 November 2024 at 11:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyItemEnum is not case sensitive?
Posted By: cybeh
Subject: PropertyItemEnum is not case sensitive?
Date Posted: 19 September 2007 at 9:41pm
   
    Dim pgiCat As PropertyGridItem, pgiItem As PropertyGridItem
    
    Set pgiCat = PropertyGrid1.AddCategory("Cat 2")
    Set pgiItem = pgiCat.AddChildItem(PropertyItemEnum, "Test Enum", 1)
        pgiItem.ConstraintEdit = True
        pgiItem.Constraints.Add "Item 0", 0
        pgiItem.Constraints.Add "Item 1", 1
        pgiItem.Constraints.Add "Item 2", 2
        pgiItem.Constraints.Add "Item 3", 3
        pgiItem.Constraints.Add "Item 4", 4
        pgiItem.Constraints.Add "Item 5", 5
        pgiItem.Constraints.Add "item 5", 6
        pgiItem.Constraints.Add "itEm 5", 7



nor matter the user select 5, 6, 7 it will always return the selected value as 5. Seems like the checking is not case sensitive.
 



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