มีวิธีง่าย ๆ ดังนี้
1.ใช้ using System.Drawing;
2. แล้วก็เรียกใช้แบบนี้เลยจ้า
Color col= System.Drawing.ColorTranslator.FromHtml("#DCD2C2");3.ต่อไป component ต่าง ๆ ของ web.ui ก็สามารถใช้สีได้ละ
เช่น
component.bgColor=col;
Color col= System.Drawing.ColorTranslator.FromHtml("#DCD2C2");3.ต่อไป component ต่าง ๆ ของ web.ui ก็สามารถใช้สีได้ละ
component.bgColor=col;
ไม่มีความคิดเห็น:
แสดงความคิดเห็น