Print Page | Close Window

Taskpanel / Item.Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1975
Printed Date: 17 November 2024 at 3:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Taskpanel / Item.Control
Posted By: Oma Dose
Subject: Taskpanel / Item.Control
Date Posted: 16 March 2005 at 1:18pm
Hello,

I have an problem to use controls in an TaskPanel Group. I use like in the Samples:

Dim Group As TaskPanelGroup
Dim Item As TaskPanelGroupItem
Group = AxTaskPanel1.Groups.Add(0, "Erster")
Item = Group.Items.Add(0, "", XTPTaskPanelItemType.xtpTaskItemTypeControl)
Item.Control = Text1

But on Text1 I get everytime an exception: "System.InvalidCastException" I use Vb.net 2002.

Anyone can help?

Oma Dose




Replies:
Posted By: Oleg
Date Posted: 12 July 2005 at 7:56am

Hello, Control can be used in Visual Basic 6.0 only for .NET Handle property must be used:

 

Item2 = Group.Items.Add(20, "Erster", XTPTaskPanelItemType.xtpTaskItemTypeControl, 501)

Me.Controls.Remove(Button1)

taskPanel.Controls.Add(Button1)

Item2.Handle = Button1.Handle.ToInt32()



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



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