Print Page | Close Window

TaskPanelGroupItem.Control

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=1730
Printed Date: 10 May 2025 at 6:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskPanelGroupItem.Control
Posted By: Maui
Subject: TaskPanelGroupItem.Control
Date 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




Replies:
Posted By: Maui
Date 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



Posted By: Maui
Date 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.



Posted By: TobiasWeltner
Date 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.




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