Re: Using strings in textboxes and listboxes in C#

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi spribob,

\t works as expected in TextBox or ListBox (note that if you set text in the designer \t will be translated to \\t).
I am not sure why you see black graphic and would consider reinstalling .Net if you keep having this problem.

Btw, what do you mean by the above displays as black graphic?  All text is black graphic?  In that case, maybe your selection color is the same as the text color and \t or not would make no difference.


On Fri, 06 May 2005 14:54:03 +0200, spribob <spribob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

why does the \t (tab character) not work in a  textbox or listbox, but does
work in a MessageBox?
Example: string strText = "ABCD\tEFG";
textBox1.Text = strText;
the above displays as a black grahic, any help??



-- Happy coding! Morten Wennevik [C# MVP] .