Hello,
I'm trying to dynamically add items to a toolstrip with the following code:
contextMenuStrip.Items.Add(string.Format("{0} kB/s", currSpeed), null, new EventHandler(Connection.SetSpeed));
The problem is that I need to pass a parameter to Connection.SetSpeed: currSpeed (int). How can I do that?
Thanks for your time. Best regards.