Hi,
I am wondering if anyone could provide me with a hint for adding vibration to a button's click event. I have been looking around but only found similar examples using the window registry - however I would prefer avoid toching the registry if possible.
Anyone who could provide me with some sample-code to achieve this (C# or VB.Net)?
Thank you.
UPDATE: The code provided by jball works like a charm. I called the code as follows in order to achieve a short vibration:
Private Sub btnMute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
handles btnMute.Click
SetVibrate(1)
Thread.Sleep(50) 'how long should the vibration last
SetVibrate(0)
end sub
Works really great!