Help with Select statement with WParam

  • Thread starter Thread starter vbmark
  • Start date Start date
V

vbmark

m is a "Microsoft.WindowsCE.Forms.Message"

I need to make a select statment like this:

Select Case m.WParam

but the error I get is:

'Select expression can not be of type 'System.IntPtr'

I try to convert it to a different type but keep getting error messages
that it can't be converted to type whatever.

Can this be done? How?

Thanks.
 
From Visual Basic Language specification:
"A Select Case statement executes statements based on the value of an
expression. The expression must be classified as a value and its type
must be a primitive type or Object."

I suppose m.WParam.ToInt32() is what you are looking for.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top