Print Page | Close Window

Inserting a PropertyGrid in a Pane

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=2925
Printed Date: 24 November 2024 at 9:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Inserting a PropertyGrid in a Pane
Posted By: Jlym
Subject: Inserting a PropertyGrid in a Pane
Date Posted: 20 September 2005 at 3:40pm

Hello all!

I did download a Xtreme Suite Pro ActiveX for evaluation and I'm trying to write an application using DockingPane and PropertyGrid controls (C#, XP Professional).

When my application starts I create some panes (Pane MyPane = axDP.CreatePane(...)) and I need to put a PropertyGrid in myPane. What do I need to do? The only way that I could use PropertyGrid it was by putting it in desing mode. How can I put a PropertyGrid control in a pane created in execution time?

Thank you very much.



-------------
Jlym.



Replies:
Posted By: Jlym
Date Posted: 21 September 2005 at 1:41pm

Sorry for posting that question and started an unecessary topic... this stupid guy is answering for himself!!!!!

To get a PropertyGrid running on a Pane it's so simple: all we have to do is create a new form (Control UserControl, for example), and put there in design mode a PropertyGrid. After that we should process the event of DockingPane AttachPaneEvent and set the e.item.Handle = our form.Handle. It works fine!

Sorry again!!!



-------------
Jlym.



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