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

Recommended Answers

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

Jump to Post

All 2 Replies

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.