Print Page | Close Window

PropertyGridControl - restricting length of textt

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


Topic: PropertyGridControl - restricting length of textt
Posted By: VatsalaR
Subject: PropertyGridControl - restricting length of textt
Date Posted: 23 September 2010 at 9:31am
Hi,

I load items dynamically into a property grid control and I want to be able to set the maximum length of text that can be entered for a particular item

Someone knows how to do this?

I am using 9.81 version of codejock

Thanks,
Vatsala



Replies:
Posted By: Aaron
Date Posted: 24 September 2010 at 12:22am
Hi,
 
I don't know if this property has been implemented in your version...
 
For example, when adding item to PropertyGrid
 
Set Item = Category.AddChildItem PropertyItemString, "Greeting Text", "Some text...."
      Item.ValueMetrics.MaxLength = 255
 
or
 
Me.wndPropertyGrid.FindItem(ID_OF_ITEM).ValueMetrics.MaxLength = 255
 
 


-------------
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....


Posted By: VatsalaR
Date Posted: 24 September 2010 at 1:12am

Unfortunately, this property is not supported in 9.81. Thanks

At least, the document does not show it Cry



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