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 :
Hors j'ai ce message d'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 listBoxCategorie.DataBindings.Add("ToolTip", bindingSourceCommon, "CategorieDescription");
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3Cannot bind to the property 'ToolTip' on the target control. Parameter name: PropertyName
Alors que cela marche Tres Bien....
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é.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 toolTipCommon.SetToolTip(listBoxCategorie, "Coucou");
Si quelqu'un sait, ce serai cool de me sortir de cette impasse...Merci
Partager