Print Page | Close Window

Update property grid

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=15840
Printed Date: 20 June 2024 at 8:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Update property grid
Posted By: igump
Subject: Update property grid
Date Posted: 13 December 2009 at 9:46pm
   Hi,
 
       i want get a value from the dialog form and update the other form which the property grid in, the code as following, i use 'finditem' ok and also get the value from the frmnewdialog, but can't display the value on this item, can you tell why? every thanks!
 
 
        If frmNewDialog.IsOK = True Then
            Dim aItem As XtremePropertyGrid.PropertyGridItem
            Set aItem = frmPaneProperty.PropertyGrid.FindItem("SampleNumber")
            aItem.Value =frmNewDialog.SampleNumber
        End If
 
       



Replies:
Posted By: Oleg
Date Posted: 14 December 2009 at 6:40am
Have work. Are you sure aItem is not "Nothing" on last line  ?
btw line frmPaneProperty.PropertyGrid can create additional Form - check if it form that you already have.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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