This is related my earlier post about disabling buttons. I have an HTC Touch. After my form loaded i was able to disable the camera button on the side. For some reason i can't disable the 2 app launch buttons and the rocker. I looked at the registry and only Button 1 is assigned (193 - camera). Are these special buttons that can't be disabled? Or is there a way to assign them to registry? Thanks!
The code below is what shows up when I click on the rocker and the app launch buttons from design in VS2008.
Code:Private Sub msgapi_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If (e.KeyCode = System.Windows.Forms.Keys.Up) Then 'Up End If If (e.KeyCode = System.Windows.Forms.Keys.Down) Then 'Down End If If (e.KeyCode = System.Windows.Forms.Keys.Left) Then 'Left End If If (e.KeyCode = System.Windows.Forms.Keys.Right) Then 'Right End If If (e.KeyCode = System.Windows.Forms.Keys.Enter) Then 'Enter End If End Sub




Reply With Quote