TaskPanelGroupItem.Control |
Post Reply |
Author | |
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
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 : 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 |
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
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 |
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
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. |
|
TobiasWeltner
Newbie Joined: 12 January 2005 Status: Offline Points: 35 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |