Print Page | Close Window

Property Grid Bug

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=2694
Printed Date: 23 November 2024 at 10:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Property Grid Bug
Posted By: daliaessam
Subject: Property Grid Bug
Date Posted: 06 August 2005 at 12:57pm

Forms attached using the DockingPaneManager_AttachPane procudeure are not accessable.

Example:

 

             If frmPropertyGrid Is Nothing Then
                 Set frmPropertyGrid = New frmPropertyGrid
             End If
Now if you try to access the frmPropertyGrid variable in your forms, it will not be seen as if it is not loaded in VB, the only solution is to load the form and show it early in the program before the attach is reached then refernce to teh form direct not through a new variable:

sub form_load()

load frmPropertyGrid

end sub

        Case ID_PANE_PROPERTIES:
'              If frmPropertyGrid Is Nothing Then
'                  Set frmPropertyGrid = New frmPropertyGrid
'              End If
             Item.Handle = frmPropertyGrid.hwnd

Am I missing something




Replies:
Posted By: Oleg
Date Posted: 07 August 2005 at 1:33am

Because AttachPane can be called after form_load event.

if you need to access frmPropertyGrid in form_load you can use your code,

 

sub form_load()

load frmPropertyGrid

end sub

 

...

        Case ID_PANE_PROPERTIES:
               If Not frmPropertyGrid Is Nothing Then
                     Item.Handle = frmPropertyGrid.hwnd
               End If



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