Change Font color on C1Input control

Originally Posted 25 March 2015, 10:35 am EST

  • Originally Posted 25 March 2015, 10:35 am EST

    Does anyone know how to change the forecolor of the control using code.

    Imports C1.Web.UI

    Function ChangeColor()
    'This does not work
    MyInputControl.ControlStyle.ForeColor = Drawing.Color.DarkRed
    'This does work
    MyInputControl.ControlStyle.BorderColor = Drawing.Color.DarkRed

    ' I need to change the font color if the number in the control is lass than zero

    Imports C1.Web.UI
    end function
  • Reply

    Hello,

    You can refer to the following links describing the same:
    http://helpcentral.componentone.com/nethelp/c1inputASPNET/default.htm?turl=addingcustomvisualstyles.htm
    http://helpcentral.componentone.com/nethelp/c1inputASPNET/default.htm?turl=displayinginvalidinputcolor.htm

    Note: We no longer support Studio for ASP.NET AJAX controls. These have been replaced by Studio for ASP.NET and you can refer to the following link for more details:http://www.componentone.com/Studio/Input-Editing/InputASPNET

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels