Thank you, but i do not understand when need to convert the value.
My code:
/////////////////////////////////////////////////
Dim objrk As RegistryKey =
Registry.CurrentUser.OpenSubKey("test") Dim a As Int32 =
objrk.GetValue("name") Dim b As UInt32 =
BitConverter.ToUInt32(BitConverter.GetBytes(a), 0)
MessageBox.Show(a) MessageBox.Show(b)
////////////////////////////////////////////////
The b value always is right. If the value is small, a and b are right
both, if the value is big, a will be wrong.
Do i need add the code BitConverter.ToUInt32 to my program? because i
do not know how many the value is...