Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Using the TaskPanel in Access
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using the TaskPanel in Access

 Post Reply Post Reply
Author
Message
FSBarker View Drop Down
Newbie
Newbie


Joined: 01 August 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSBarker Quote  Post ReplyReply Direct Link To This Post Topic: Using the TaskPanel in Access
    Posted: 01 August 2007 at 9:29pm

I have been attempting to use the TaskPanel in Access and feel I am very close. However, I am having a hard time when I try to add a listbox as a group item. Is this possible? I first tried to use a subform but figured I may be pushing it with that.

 
I am using the code below, which adds three groups and 2 listboxes as items, one in the 2nd and the other in the third group.
 
I get no errors and everything looks ok accept of couse the that listboxes remain beside the taskpanel and are not added to it as desired. since I am using access as with vba there is no Handle property on the control and I am just specifying the name of the control as instructed in the tutorial. Any help would be appreciated.
 
Private Sub Form_Load()
       
    Dim Group As TaskPanelGroup
    Set Group = wndTaskPanel.Groups.Add(0, "Phone Call List")
   
    Set Group = wndTaskPanel.Groups.Add(0, "Appointments")
   
    Dim Item As TaskPanelGroupItem
    Set Item = Group.Items.Add(0, "", XTPTaskPanelItemType.xtpTaskItemTypeControl)
    Set Item.Control = Me.lstAppointments
    lstAppointments.BackColor = Item.BackColor
    Set Group = wndTaskPanel.Groups.Add(0, "Bookmarks")
   
    Set Item = Group.Items.Add(0, "", XTPTaskPanelItemType.xtpTaskItemTypeControl)
    Set Item.Control = Me.lstBookmarks
    lstBookmarks.BackColor = Item.BackColor
   
    wndTaskPanel.Reposition
   
End Sub
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.125 seconds.