Thanks for the suggestion its just what I need but I struggled to pass data to the control.
The solution required the use of a "VariantWrapper".
I created a c# form test project, added the HexEdit control and 1 button that loaded the control with data in the click event.
I needed the following class variables:
public partial class Form1 : Form
{
System.Runtime.InteropServices.VariantWrapper var;
Array t;
object o;
.
.
In the form constructor:
public Form1()
{
InitializeComponent();
t = Array.CreateInstance( typeof(byte), 50 );
Then in my click event:
private void button1_Click(object sender, EventArgs e)
{
for (int i = t.GetLowerBound(0); i <= t.GetUpperBound(0); i++)
t.SetValue((byte)(i + 0x30), i);
var = new System.Runtime.InteropServices.VariantWrapper(t);
o = var;
axHexEdit1.SetData(ref o, 0);
}
This got the control working but I ran into another problem - System.Runtime.InteropServices.SEHException
The solution for that is here:
http://dotnetfreak.co.uk/blog/archive/2004/09/02/system-runtime-interopservices-sehexception.aspx