I'm new to making hex editors and i have made a program that so far reads a selected line and displays it in a label.
this is what i have so far:
but i need it to read multiple selected lines and display in certain labels e.g. 100+ of this code as it opens the program.
this is what i have so far:
Code:
public Form1()
{
InitializeComponent();
}
OpenFileDialog ofd = new OpenFileDialog();
private void button1_Click(object sender, EventArgs e)
{
ofd.ShowDialog();
BinaryReader br = new BinaryReader(File.OpenRead(ofd.FileName));
string carmake = null;
for (int i = 0x39607; i <= 0x3960f; i++)
{
br.BaseStream.Position = i;
carmake += br.ReadByte().ToString("X2");
}
br.Close();
if (carmake == "6175645F72385F3038") label2.Text = "Audi R8";
}