Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Task Panel Remove?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Task Panel Remove?

 Post Reply Post Reply
Author
Message
syndalis View Drop Down
Groupie
Groupie
Avatar

Joined: 20 October 2005
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote syndalis Quote  Post ReplyReply Direct Link To This Post Topic: Task Panel Remove?
    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.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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


Edited by SuperMario
Back to Top
syndalis View Drop Down
Groupie
Groupie
Avatar

Joined: 20 October 2005
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote syndalis Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2005 at 10:37am
wndTaskPanel.Groups.Find(6).Remove worked like a charm. Thanks!
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.219 seconds.