Hi Nicholas,
Actually, I need to bind to the enabled property of a button on the
toolstrip. The ToolStripButton class descends from ToolStripItem which only
descends from Component. What I was trying to do something like this:
MyToolstripButton.DataBindings.Add("Enabled",
MyBusinessObjectCollection, "EnableSave");
This does not compile, of course, because ToolStripButton does not have a
DataBindings property.
Any ideas?
Mike
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eG****************@TK2MSFTNGP04.phx.gbl...
Michael,
ToolStrip derives from ScrollableControl which ultimately derives from
Control, so you definitely should be able to bind to the Enabled property.
Can you show some code?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Michael Rodriguez" <mi**@nospamforme.com> wrote in message
news:uT**************@TK2MSFTNGP03.phx.gbl... Does anyone know how I can bind to the Enabled property of a toolstrip
button? That class doesn't seem to expose the DataBindings property...
TIA,
Mike Rodriguez