I want to receive a hex calculating on:
static int count = 0;
string s;
private void SetClock_Click(object sender, EventArgs e)
{
count++;
label5.Text = count.ToString("X2");
DateTime time = DateTime.Now;
s = "4D-" + "1A-" + "2B-" + "3C-" +(label5.Text);
txtSend.Text = s;
}
After that i remove the ‘-‘ between the code and i want to add the HEX calculated result after “(label5.text)”:
4D 1A 2B 3C (label5.text) (hex result on (4D 1A 2B 3C (label5.text))).
I can’t understand how to tell my program to get different bytes – 4D/1A/2B… This is actually what we can do with the calculator on Scientific Mode selected “hex function” and typing all those 4D 1A.. by pressing XOR.
As I understand Correctly, You want to apply
XORon yoursvalue and store its result inHEXin totxtSend.TextIf so you can try thisIF
label5.TextContains1then result will be41like