So basically, my question is how do I get this accomplished?

stream.WriteByte(&H & byt6)

I want it to recognize the variable as a hex byte, in vb6 i could have done something along the lines of chr$("&H" & byt6)