getting REG_BINARY data from the registry editor into a textbox!
im trying to load the KEY data,
for this example i first use the DATA to load it (because that is in ascii and not in hex binary)
oke let try it out!
it works!
now lets try the KEY data in hex binary!
so i changed the code so it loads the KEY information
oke lets change the code
changed the code! now lets try to run it!
And then i got a error, but i dont know how to fix it
please help me! thanks!


.Text = An Object
GetValue() Returns OBJECT. .Text is STRING
Dim someBytes() as Byte
someBytes = GetValue() - maybe? apparently it's not a string (.text)
google how to convert an array of bytes into a string. There are ways.
bytes = TextBox1.Text is very very very wrong.
TextBox1.Text = bytes // closer
but u can't set a STRING == to a BYTE (array) . convert the byte array into a string.
ie. .Text = Ascii.FromBytes(bytes) or some other way to convert bytes to strings.
There is no 1 way to do this because 'strings' can be a different data type --> Ascii vs Unicode for example. 1 bytes vs 2 for each letter. You have to understand data types.
datatype = datatype
you can't do
string = byte array
just like you wouldn't do
integer32 = byte array etc etc.
so what do i need to do now.. is a pretty...not good question. NEED is def. the wrong word.
I could just paste you the code, but I'm not sure that will fix the root of the problem. I was trying to help you figure it out for yourself. If you have questions: ask, or read. If you haven't learned 1 programming language yet: get a book (buy or library or .pdf) and learn all the aspects of programming before trying to do something extremely specific like access the windows registry.
I know what you meant: "the stuff in the registry under BINARY" ...but do you understand what binary is, and what hex is, and what strings are? You have to understand those first. I'm not sure what else to say, short of posting code.
It's all just bytes. Each 2 letters, ie. 5F, 00, 13, CC, are all just bytes. if it's ascii, 1 bytes = 1 letter
so you must (must?) convert the array of bytes into an array of letters. There must be some .net functions to do this.