Sorry for taking so long. Had some project interviews this morning. Just getting back to my home office.
You'll likely benefit from using Stefan's .NET Micro Framework Toolbox on CodePlex. In the Samples you'll want to take a look at the Auto-Repeat Button Example. I am using this on Pandora's Box. Basically I have a menu so I use up and down buttons and an enter button to run different modes. When I start my scan mode the only way to end it is to hold the up button for 3 seconds and it will stop scan mode then reset Pandora's Box.
Inside the button state change event handler the case of "AutoRepeatInputPort.AutoRepeatState.Tick" handles timed button presses. The documentation on the CodePlex site is pretty good. You'll see the following properties help you set your timings.
InitialDelay - Get/set the initial delay before the auto-repeat starts.
AutoRepeatPeriod - Get/set the interval period of the auto-repeat.
Hope this helps.
- hanzibal likes this