ToolstripItem binding to a variable

How can I bind a ToolstripItem to a string or integer variable


Answer this question

ToolstripItem binding to a variable

  • gorance

    Where you change the variable, put this line of code :
    ToolStripLabel1.Text = var
    Hope this helps.


  • waldedg

    The first answer comes close to what I need. To ToolstripLabel should be updated whenever the variable changes. How can this be accomplished
    Thanks!

  • sj2509

    Do you mean you want to ToolStrip item's text in a variable :
  • ToolstripItem binding to a variable