TextBox + colour

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Markk

    TextBox + colour

    Hi.
    I would like to ask, if it's possible make text in Classic TextBox control
    coloured. I think like in RichTextBox. One Part of text will have one color,
    second part text another color.

    Maybe I colud overload OnPaint method, but I don't know how.-
    Is on Internet any example.
    Thank you very much for answers.


  • Mattias Sjögren

    #2
    Re: TextBox + colour

    [color=blue]
    >I would like to ask, if it's possible make text in Classic TextBox control
    >coloured. I think like in RichTextBox. One Part of text will have one color,
    >second part text another color.[/color]

    Not different colors for different parts of the text, no. Why don't
    you just use the RichTextBox?



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Markk

      #3
      Re: TextBox + colour

      Hi.
      I trying to use classic textbox, because I would like to make highlighting
      editor.
      and Richtext box is too slow when I want coloured many text.
      Or any Ideas How Can I make highlighting editor with RTB?
      Thanks
      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
      news:e8TTo6AVFH A.2616@TK2MSFTN GP14.phx.gbl...[color=blue]
      >[color=green]
      >>I would like to ask, if it's possible make text in Classic TextBox control
      >>coloured. I think like in RichTextBox. One Part of text will have one
      >>color,
      >>second part text another color.[/color]
      >
      > Not different colors for different parts of the text, no. Why don't
      > you just use the RichTextBox?
      >
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.[/color]


      Comment

      • Lebesgue

        #4
        Re: TextBox + colour

        If you want a highlighting editor, check out SharpDevelop, which is under
        GPL and has a fairly good editor control with much more than just an easy to
        use highlighting.

        ICSharpCode has 20 repositories available. Follow their code on GitHub.



        "Markk" <eknihy@szm.s k> wrote in message
        news:%23W5pQBBV FHA.3292@TK2MSF TNGP14.phx.gbl. ..[color=blue]
        > Hi.
        > I trying to use classic textbox, because I would like to make highlighting
        > editor.
        > and Richtext box is too slow when I want coloured many text.
        > Or any Ideas How Can I make highlighting editor with RTB?
        > Thanks
        > "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
        > news:e8TTo6AVFH A.2616@TK2MSFTN GP14.phx.gbl...[color=green]
        > >[color=darkred]
        > >>I would like to ask, if it's possible make text in Classic TextBox[/color][/color][/color]
        control[color=blue][color=green][color=darkred]
        > >>coloured. I think like in RichTextBox. One Part of text will have one
        > >>color,
        > >>second part text another color.[/color]
        > >
        > > Not different colors for different parts of the text, no. Why don't
        > > you just use the RichTextBox?
        > >
        > >
        > >
        > > Mattias
        > >
        > > --
        > > Mattias Sjögren [MVP] mattias @ mvps.org
        > > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        > > Please reply only to the newsgroup.[/color]
        >
        >[/color]


        Comment

        Working...