// Windows CE Fn Keys
alKeys.Add(Convert.ToInt32(Keys.F7)); // "F7" key
alKeys.Add(Convert.ToInt32(Keys.F8)); // "F8" key
alKeys.Add(Convert.ToInt32(Keys.F9)); // "SCAN" key
alKeys.Add(Convert.ToInt32(Keys.F19)); // Gun trigger
I'm trying to call a method like this:
if((alKeys.Add(Convert.ToInt32(Keys.F9))==true))
{
rfid.SetCallback(new RfidCallbackProc(myRfidCallback));
//this is the method i am calling
}; // "SCAN" key
But I got this error:
Error 1 Operator '==' cannot be applied to operands of type 'int' and 'bool' SmartDeviceProject1
So how to do it properly?
if((alKeys.Contains(Convert.ToInt32(Keys.F9))==true))