Groups | Blog | Home
all groups > dotnet compact framework > may 2007 >

dotnet compact framework : Capturing the Back Key



Hilton
5/28/2007 11:31:50 AM
Hi,

ListView lv;

Neither this.lv.KeyDown or this.lv.KeyPress see the Back key. How do I get
my code to 'see' it? FYI: KeyDown does see the Up and Down arrow keys.

Thanks,

Hilton

Fabien
5/28/2007 12:58:30 PM
Hi,

I try this:
private void listView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Back)
{
MessageBox.Show("back");
}
}
It works fine for me.

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/

[quoted text, click to view]

Hilton
5/28/2007 2:59:11 PM
Fabien,

Does not work for me. I'm running this on a Blackjack (not sure if that
makes any difference), it has had no CF installed (post-purchase), therefore
it is running CF 1.0. I have tried changing a few ListView properties and
even using this.Controls.Add (this.lv) instead of this.lv.Parent = this, but
that didn't help either.

I would try the emulator, but VS keeps telling me "Interface not
supported" - gotta loves those perfectly clear error messages. ;)

Hilton


[quoted text, click to view]

Hilton
5/28/2007 3:34:27 PM
Seems to work find with other controls, ListView has a bug?


[quoted text, click to view]

Fabien
5/29/2007 7:01:15 AM
Hi,

If you use CF1.0, try to install the SP3 and if you can the CF2.0...

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/

[quoted text, click to view]

AddThis Social Bookmark Button