Here´s a short how-to for getting started with gestures in your Windows Mobile applications. First how you set up your device project, and then i explain how it works using the managed gesture wrapper from MSDN.
First of all you need to consider if you would like to do it the “hardcore” way? by doing all the P/Invoke native calls yourself (then this documentation on MSDN is really useful) or if you just want to get gestures working and use the managed wrapper available in the MSDN code library, - You can also find the source code for the wrapper there if you later need to find out how it really works. I haven´t investigated the wrapper library yet, so I am not sure if it encapsulates all the native functionality that is available.
First of all; Start Visual Studio 2008 and create a new device application solution. There is no specific Windows Mobile 6.5 application template so you just choose a Windows Mobile 6 project. Next you need to do is to add a reference to Microsoft.WindowsMobile.Gestures.dll (assuming now that you have downloaded the dll file) in your WYSIWYG in VS08.
Right click on the General tab in the toolbox and select “choose items…”- In the “Choose toolbox items” dialog select the browse button in the “.NET Framework Components” tab
- Browse to where you extracted the Gestures dll file and select it.
- A component called “GestureRecognizer” has it´s checkbox checked and selected. Click the OK button.






