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
 
Oh, man! How simple?! I was trying to use the Convert statement.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top