skip to main | skip to sidebar

Our 2 Cents towards technology.

Sharing is Knowledge!

Tuesday, June 10, 2008

Convert Hex Value of color and apply to a control

A simple thing...To convert any hex value and apply to a control using code behind, use the below

System.Drawing.ColorConverter ccColorConverter = new System.Drawing.ColorConverter();

txtAAgency.ControlStyle.BackColor = (System.Drawing.Color)ccColorConverter.ConvertFrom("#EEEEEE");
Posted by tamizhppiriyan at 9:54 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contributors

  • Birth of RightClick
  • C.Sudharsan
  • Deeps
  • tamizhppiriyan

This is our world

This is our world

Categories

  • .NET
  • .NET 2.0
  • AJAX
  • Fixed Header
  • GridView
  • HealthMonitoring
  • Hinduism SuperconciousBreakThrough Live Satsang
  • IE
  • Infragistics
  • Microsoft
  • Numeric Edit
  • PDF
  • Scrollable GridView
  • SQL

Blog Archive

  • ►  2022 (1)
    • ►  November (1)
  • ►  2021 (7)
    • ►  August (1)
    • ►  June (3)
    • ►  May (2)
    • ►  February (1)
  • ►  2020 (1)
    • ►  April (1)
  • ►  2019 (3)
    • ►  March (2)
    • ►  February (1)
  • ►  2010 (1)
    • ►  May (1)
  • ▼  2008 (8)
    • ►  July (1)
    • ▼  June (7)
      • Few more tips..
      • Convert Hex Value of color and apply to a control
      • PDF Read, Binary Save
      • Open PDF
      • the state information is invalid for this page and...
      • Infragistics Web Numeric Edit
      • Infragistics Web Panel
  • ►  2007 (11)
    • ►  November (1)
    • ►  August (2)
    • ►  March (1)
    • ►  February (7)