Multiple binary readers on a button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonic91
    New Member
    • Jan 2014
    • 3

    #1

    Multiple binary readers on a button

    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:


    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";
    
            }
    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.
Working...