Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Taskpanel / Item.Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Taskpanel / Item.Control

 Post Reply Post Reply
Author
Message
Oma Dose View Drop Down
Newbie
Newbie


Joined: 16 March 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oma Dose Quote  Post ReplyReply Direct Link To This Post Topic: Taskpanel / Item.Control
    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

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: 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
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.156 seconds.