Taskpanel / Item.Control |
Post Reply |
Author | |
Oma Dose
Newbie Joined: 16 March 2005 Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |