Hi everybody.
I am using visual studio 2005 and want to write an vb application for my htc kaiser on windows mobile 6.1 professional.
when I double click on the designers telephone button I get the following:
Private Sub Form1_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
MsgBox("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
But what if I want to create an action on pressing the phone button or hangup button?
Do they have names I can use?
Is there a process in the background that prevents my application reading those keys? nothing happens what key I press...
- It is currently Fri May 24, 2013 6:54 am • All times are UTC + 2 hours
Read Phone Keys pressed
Moderator: Teksoft
5 posts
• Page 1 of 1
are you trying to intercept the hardware keys or ar you talking about your own application with some phone buttons?
- Teksoft
- Editors
- Posts: 416
- Joined: Wed Dec 10, 2008 10:26 am
I am writing an own application with your dyntapi.dll
I am going to kill the process cprogr.exe so I can use the red and green telephone keys.
are those keys hardware keys?
Is it possible to use them for own applications?
if not I could also use own buttons on my form but it would be cool to use these buttons
I am going to kill the process cprogr.exe so I can use the red and green telephone keys.
are those keys hardware keys?
Is it possible to use them for own applications?
if not I could also use own buttons on my form but it would be cool to use these buttons
- roadster
- TEK-Seeker
- Posts: 15
- Joined: Fri Mar 14, 2008 8:40 pm
Re: Read Phone Keys pressed
It seems like you are trying to intercept with the phones applications. I am not sure if that is a wise idea because it might cause jamming on your other phones application. If I were you, I will just try to create my own codes if you want an animated buttons.
Last edited by drewdoms11 on Wed Oct 20, 2010 12:53 pm, edited 1 time in total.
- drewdoms11
- TEK-Newbie

- Posts: 1
- Joined: Tue Sep 21, 2010 7:24 am
Re: Read Phone Keys pressed
Hi
I am working in health & social sector. For every contact I have a limited amount of time every month, so I wrote an app to measure time for each of my clients. If I am called or do have to make a call my app automatically measures time of using the phone with each client. My app warns me when I am spending too much time for specific clients.
I don´t get more payment, it´s a kind of fixed price... So spending too much time results in unpayed work. That´s why I wrote it... Of course it´s not for public use, only for me in private
I am working in health & social sector. For every contact I have a limited amount of time every month, so I wrote an app to measure time for each of my clients. If I am called or do have to make a call my app automatically measures time of using the phone with each client. My app warns me when I am spending too much time for specific clients.
I don´t get more payment, it´s a kind of fixed price... So spending too much time results in unpayed work. That´s why I wrote it... Of course it´s not for public use, only for me in private
- roadster
- TEK-Seeker
- Posts: 15
- Joined: Fri Mar 14, 2008 8:40 pm
5 posts
• Page 1 of 1
Return to .NET Compact Framework
Who is online
Users browsing this forum: No registered users and 1 guest