Print Page | Close Window

Adding control into group vb.net

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=7691
Printed Date: 04 May 2024 at 6:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding control into group vb.net
Posted By: swaykid
Subject: Adding control into group vb.net
Date Posted: 30 July 2007 at 4:22am
We are converting a vb6 app to vb.net and virually all of the code to create the task panels is the same, which is nice.
 
However when attempting to insert controls (in this case a treeview) in a group panel the control appears outside the and above the group panel
 
 
The code here works perfectly in vb6 and the strange thing is that when the group is expanded you can see the treeview placed correctly, once expanded it shift up to the position shown.
 
-------------------------------------------------------------------

Folder = tp1.Groups.Add(1, "2. Tipo de listado")

With Folder

Pointer = .Items.Add(100, "Tipo", XTPTaskPanelItemType.xtpTaskItemTypeControl, 100)

' Pointer.Control = txtnombre

Me.TreeView1.BringToFront()

Pointer.Handle = Me.TreeView1.Handle

---------------------------------------------

Any ideas?




Replies:
Posted By: Oleg
Date Posted: 30 July 2007 at 8:50am
Hi,
try to put tree toControls collection of taskapnel:
 
 
tp1.Controls.Add TreeView1...


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


Posted By: swaykid
Date Posted: 31 July 2007 at 4:40am
cheers, that worked a treat



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