Print Page | Close Window

PropertyGrid Control and CommandBars Bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4193
Printed Date: 04 October 2024 at 1:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGrid Control and CommandBars Bar
Posted By: mrlinx
Subject: PropertyGrid Control and CommandBars Bar
Date Posted: 11 May 2006 at 7:11am
hi.
I'm having a problem I believe it's new in version 10 (VB6).

The problem is the dialogbar in CommandBars with a propertygrid as child. With a simple dialog bar, and the propertygrid as clield, if I mouse click on the Property grid... the grid goes away, as if wasnt a dialogbar anymore.

at form load the propertygrid is in the right place (at dialog bar) but after a click it disapears and shows in the original place (place where I left it in the vb6 form designer) with Visible = true.

You can use this simple sample to test.

uploads/mrlinx/2006-05-11_070618_sample.rar - 2006-05-11_070618_sample.rar




Code:

Option Explicit
Dim DialogBar As DialogBar

Private Sub Form_Load()
    CommandBarsGlobalSettings.App = App
    CommandBars.DeleteAll
    Set DialogBar = CommandBars.AddDialogBar("TaskPanel", xtpBarRight)
    DialogBar.ChildHandle = PropertyGrid1.hWnd
End Sub



Replies:
Posted By: Oleg
Date Posted: 11 May 2006 at 8:30am

Hello,

Please put PropertyGrid to PictureBox and attach PictureBox to DialogBar.



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


Posted By: mrlinx
Date Posted: 11 May 2006 at 11:47am
oleg, thanks.




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