[C#][2.0] Probleme Binding d'un ToolTip
Bonjour à tous.
J'ai un toolTip et une listbox dans ma Form,
J'ai un binder un DataSet Binder à un BindingSource (qui marche nickel).
J'aimerai Binder mon ToolTip à un champ de mon BindingSource, lorsqu'il entre sur la ListBox.
Pour cela je fait :
Code:
1 2
|
listBoxCategorie.DataBindings.Add("ToolTip", bindingSourceCommon, "CategorieDescription"); |
Hors j'ai ce message d'erreur :
Code:
1 2 3
|
Cannot bind to the property 'ToolTip' on the target control.
Parameter name: PropertyName |
Alors que cela marche Tres Bien....
Code:
1 2
|
toolTipCommon.SetToolTip(listBoxCategorie, "Coucou"); |
Ce qui signifie qu'il ne trouve pas la propriété ToolTip, alors j'ai du oublier de faire qlq chose mais en theorie ca devrai marché.
Si quelqu'un sait, ce serai cool de me sortir de cette impasse...Merci