Edit->Text = AnsiString().sprintf("%02X", buf[0]);