Byte data display...

  • Thread starter Thread starter Ray Cassick \(Home\)
  • Start date Start date
R

Ray Cassick \(Home\)

I am trying to set up a form to edit a byte array and am looking for a
control that gives me an interface that shows the following:

1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2

Kind of looks like the this:

FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00
..îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00
...Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00
...&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E .....
..b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00
63..d...2.....P.

Any ideas where I can get one, or any leads on creating one?
 
Ray Cassick (Home) said:
I am trying to set up a form to edit a byte array and am looking for a
control that gives me an interface that shows the following:

1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2

Kind of looks like the this:

FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00
.îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00
..Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00
..&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E .....
.b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00
63..d...2.....P.

Any ideas where I can get one, or any leads on creating one?

Well, where are you stuck? You should consider that the "ASCII"
representation of the data needs to know what to do with characters
outside the ASCII range - i.e. above 0x7f. You should probably have an
option for which encoding to use.
 
Jon Skeet said:
Well, where are you stuck? You should consider that the "ASCII"
representation of the data needs to know what to do with characters
outside the ASCII range - i.e. above 0x7f. You should probably have an
option for which encoding to use.

Well I am not really stuck YET since I have not decided to what side of the
build vs. buy/download coin I am going to land on.

If anyone knows of a source for such a control that is already built I would
be interested in it. Otherwise I will have to endeavor down the path of
rolling my own.
 
There is a control in the framework. Check out the ByteViewer.
System.ComponentModel.Design.ByteViewer

Lloyd Sheen
 
That rocked!

Thanks. It was just what I needed. I don't know why that control does not
appear in the toolbox.
 
Back
Top