...get more... for Delphi.NET, C#, VB.NET for Delphi VCL, BCB 3-6
greatis.blogspot.com
Use Format function:
HexString:=Format('%0x',DecValue);