views:

62

answers:

1

Whenever I add the Jabber-net RosterTree control to my form, I can see that the PresenceManager and RosterManager property values for it have this error listed:

Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.ComponentModel.Component'.

I can compile the solution and all but this error keeps popping up randomly. Can someone advice when this may happen. I'm thinking it has to do with the controls not being added properly.

A: 

Try setting the InvokeControl on your JabberClient instance to something that is a Component, like your Form, for instance. If that fixes the problem, then I know where the bug is.

Joe Hildebrand
actually the jabberclient invokecontrol is already set to the form. it's only when i add a rostertree that i see the errors in the property dialog.
Farooq
And do you have a PresenceManager and a RosterManager on that form already? If so, can you set them manually, rather than letting RosterTreeView find them automatically?
Joe Hildebrand