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

Property Grid Bug

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


Joined: 28 June 2005
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote daliaessam Quote  Post ReplyReply Direct Link To This Post Topic: Property Grid Bug
    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

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: 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
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.109 seconds.