What do I want to do, is it possible? convert the value variable to hex.
private void button1_Click(object sender, EventArgs e)
{
int value = 255;
byte[] buffer = new byte[5];
buffer[0] = 0xff;
buffer[1] = value; //eu preciso converter esse value para hex.
//igual ao buffer[0] , tem como?
}