Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Adding control into group vb.net
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding control into group vb.net

 Post Reply Post Reply
Author
Message
swaykid View Drop Down
Newbie
Newbie
Avatar

Joined: 16 November 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote swaykid Quote  Post ReplyReply Direct Link To This Post Topic: Adding control into group vb.net
    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?

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: 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
Back to Top
swaykid View Drop Down
Newbie
Newbie
Avatar

Joined: 16 November 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote swaykid Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2007 at 4:40am
cheers, that worked a treat
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.328 seconds.