Hi,
I have the following windows form code to trap the 'key press' of the
windows key (LWin). How do I stop the key event from being processed?
I'm trying to block the use of the LWin key...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace TestApp
{
public partial class Test : Form
{
public Test()
{
InitializeComponent();
}
protected override bool ProcessCmdKey(ref
System.Windows.Forms.Message msg, System.Windows.Forms.Keys KeyData)
{
if (KeyData == Keys.LWin)
{
MessageBox.Show("LWin");
}
else
{
MessageBox.Show("Key=" + KeyData.ToString());
}
return true;
}
}
}