I don't think we can have two colors in a textbox. You would probably need to use two textboxes and make them look like one!
>Dear Sir,
>
>I have a numeric type textbox with following properties
>
>format: 9999-999
>maxlength:7
>value=0
>forecolor:rgb(0,0,255)
>
>I want to display the font in two colors for example
>I devide the textbox into two portions such as
>one part is before dash (-) and the rest is after dash.
>
>I want to display 9999 in blue color as well as 999 in green color.
>
>Is it possible to show textbox in two colors.
>
>Please help me
Imagination is more important than knowledge