Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Update property grid
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Update property grid

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


Joined: 15 January 2009
Location: China
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote igump Quote  Post ReplyReply Direct Link To This Post Topic: Update property grid
    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
 
       
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.