Hello, I'm new to VB.net and need a sample code that does the following.
1. Open binary file using the open file dialog
2. Show path of open binary file in textbox1
2. Go to byte 40 and give output of A in label2 if byte 40 = cb or give output of B if byte 40 = b1 or give output of unknown if byte 40 is anything else.
3. Then go to byte 100. If byte 100 = 33 then go to byte 150, if byte 150 = ff then give output in label3 of C. If byte 100 = cb then go to byte 150 if byte 150 = ff then give output of D. If byte 100 = ee then go to byte 150, if byte 150 = b1 then give output in label3 of E. Give output of unknown if byte 100 = anything else.
To simplify, I need to open a .bin file with the open file dialog and then read certain bytes of data to come up with two different results. The first result would be to read byte 40 and report A or B in label2 depending on the value of byte 40.
The second function is more complex and requires reading byte 100 and byte 150 and then giving an output to be shown in label3 depending on the two values. (For Example if byte 100 = A and byte 150 = B then the output value is C).