By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

simple hex to ingeter constant question

P: n/a
How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

In general replace the 0x with &H

public const LVIF_IMAGE AS INT32 = &H2

Ken
--------------------
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks

Nov 20 '05 #2

P: n/a
thanks! that was what i was looking for

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
Hi,

In general replace the 0x with &H

public const LVIF_IMAGE AS INT32 = &H2

Ken
--------------------
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.