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

TaskPanelGroupItem.Control

 Post Reply Post Reply
Author
Message
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Topic: TaskPanelGroupItem.Control
    Posted: 01 February 2005 at 5:52am

I am trying to use the TaskPanel control and set a custom control.

I have followed the code from the search form in the sample project which works fine.

Using this example if I substitue my control (which is a usercontrol I have made) for the sample textboxes I get the following error :
"Method 'Control' of object 'ITaskPanelGroupItem' failed"

The code is exactly the same, it is just pointing to my control now instead of the VB one.

Set Item.Control = Me.txtDate

I assume it is because I have missed some public property or something on my control that TaskPanel is looking for. I added a .hWnd property but it didnt make a difference.

Can you please advise what characteristics or properties I need to include in my usercontrol so that it can be used in this way.

Thanks



Edited by Maui
Back to Top
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2005 at 5:54am

As an update I have just tried adding a completely blank usercontol and it has the same error (just in case you thought it might have been something wrong with my control)

eg Set Item.Control = Me.UserControl11

Back to Top
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2005 at 4:57am

Have managed to find a work around (again) to this problem.

I put the usercontol inside a picturebox and then linked the picturebox. Am posting this info in case it benifits anyone else in the future.

Would still appreciate a reply from support.

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2005 at 3:51am

I have a similar problem and also used a picture box control.

However, now on some systems, the controls do not appear and instead an error message "method ~ of ~ failed" appears. I was unable to track down exactly on which systems this problem appears. I'd love to see support respond on this. It seems as if task panel does not work reliably with custom controls on all windows systems, and I'd like to find out why. Need to deliver a solution that runs on all XP systems.

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.172 seconds.