Print Page | Close Window

Task Panel Remove?

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=3108
Printed Date: 17 November 2024 at 11:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Task Panel Remove?
Posted By: syndalis
Subject: Task Panel Remove?
Date Posted: 27 October 2005 at 9:07am

How does one go about removing a task panel group through code? I have figured out how to add groups, but not how to remove them. I figured it would have something to do with the ID of the group, ie:

    Set Group = TaskPanel.Groups.Add(6, "Basic Functions")

The ID of that group is 6, so I figured a taskpanel.groups.remove(6) would do the trick. I was wrong.

any help would be greatly appreciated.




Replies:
Posted By: SuperMario
Date Posted: 27 October 2005 at 9:31am
How about:

wndTaskPanel.Groups(wndTaskPanel.Groups.Find(6).Index).Remov e

....this method  goes by index, not ID.  So you have to find the Index of the Group you want to delete as I did above.


Posted By: SuperMario
Date Posted: 27 October 2005 at 9:33am
Or you can do it this way...

    Dim tempGroup As TaskPanelGroup
    Set tempGroup = wndTaskPanel.Groups.Find(6)
    tempGroup.Remove

OR...
    wndTaskPanel.Groups.Find(6).Remove


Posted By: syndalis
Date Posted: 27 October 2005 at 10:37am
wndTaskPanel.Groups.Find(6).Remove worked like a charm. Thanks!



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