Hello again,
i have this code

  string descf = //insert string
             char[] create20spaces = { ' ', ' ', ' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                ' ', ' ', ' ', ' ', '.' };
             descf.CopyTo(0, create20spaces, 0, descf.Length);

                richTextBox1.SelectedText += "   "+quanf + "    "+create20spaces+"\r\n";

and what happen is instead of getting my string , System.char [] is showing. how can i make my string display instead of system.char[]

thanks

string str = new string(create20spaces);

That should fix your problem, i reckon.

You can indeed create a string from a char array char[]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.