Autor Beitrag
Goordon
Hält's aus hier
Beiträge: 10



BeitragVerfasst: So 22.02.09 22:55 
Hallo!

Gibt es eine Möglichkeit die Farben einzelner Wörter in einer Textbox zu ändern?

Danke im Vorraus!

Goordon!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 22.02.09 23:16 
Das geht mit einer RichTextBox:
msdn.microsoft.com/e...rms.richtextbox.aspx
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Mo 23.02.09 09:34 
Sebastian hat recht mit dem Hinweis auf die RichTextBox. Mit der normalen TextBox geht es höchstens, indem Du den Text im Paint-Ereignis manuell zeichnest; und jede Änderung dürfte diese Formatierung wieder beseitigen.

Jürgen