private void btnLoad_Click(object sender, EventArgs e) { try { using (MemoryStream stm = new MemoryStream(hexEditor.Bytes)) { COMUtilities.LoadObjectFromStream(_obj, stm); } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }