บทความนี้เป็นการเขียนโปรแกรม เพื่อดึงค่าที่อยู่ในรูปแบบ Byte หรือ hexadecimal (hex) มาแสดงเป็นรูปแบบสตริง (String)
อย่างเช่น ตัวอย่างซอร์คโค้ดต่อไปนี้
byte[] array = new byte[5];
array[0] = 0?53;
array[1] = 0xA4;
array[2] = 0xB5;
array[3] = 0xC6;
array[4] = 0xFF;
ต้องการให้แสดงผลใน TextBox ปกติ ก็จะแสดง FF ก็จะแสดง “255? ,A4 ก็จะแสดง “164? แต่สิ่งที่เราต้องการ ก็คือ ค่า FF ก็ต้องแสดงผลใน Textbox “FF” ด้วยเช่นกัน จะเขียนโค้ดอย่างไร ง่ายนิดเดียวครับ ไปดูกันเลย
How to show hexadecimal is Stringformat by using .NET | >> The Developer By IT-Devzone
Who Voted for this Story
16-inch
apple imac mb950ll/a customer reviews
asus
benjamin moore paint
coverage
health
hex
hextostring
home improvement
host
hosting
hr software
human resource software
insurance
international
laptop
n61jq-x1
painting
paints
portable
property
quickbooks
reseller
second
server มือ2
streaming
travelers
vps
การเขียนโปรแกรม
ซอร์สโค้ด
ตลับหมึก
ทำเว็บไซต์ เชียงใหม่
บริการซ่อม mainboard
หมึกพิมพ์
หมึกเติม
แอนตี้ไวรัส













