Hi,
I need to find out which button in my toolbar the user clicks on, and I can not use the ButtonClicked event. Here's why, I'm having a toolbarbutton called "rewind" that will rewind the time when the user holds the button down, just like any music player. Because of that I can not use ButtonClicked event that will only trigger when the user clicks the button, not holds it down.
I am trying to use MouseDown event, but it only gives me which button on the mouse that was pressed and the x & y cordinates. I need to know if the user pressed my rewindbutton or any other button. Can anyone help me? The only solution I can come up with is to find out x & y of my rewindbutton and compare with the events x&y to see if the user clicked in that range, but it feels like there should be a simple solution to this?
Thanx in advande
Maria
I need to find out which button in my toolbar the user clicks on, and I can not use the ButtonClicked event. Here's why, I'm having a toolbarbutton called "rewind" that will rewind the time when the user holds the button down, just like any music player. Because of that I can not use ButtonClicked event that will only trigger when the user clicks the button, not holds it down.
I am trying to use MouseDown event, but it only gives me which button on the mouse that was pressed and the x & y cordinates. I need to know if the user pressed my rewindbutton or any other button. Can anyone help me? The only solution I can come up with is to find out x & y of my rewindbutton and compare with the events x&y to see if the user clicked in that range, but it feels like there should be a simple solution to this?
Thanx in advande
Maria