MessageBox.show and displaying type char[]

  • Thread starter Thread starter VM
  • Start date Start date
V

VM

How would I need to call MessageBox.Show() so it displays a variable of type
char[] of 9 chars (char[8]) ?

If I use it normally (MessageBox.Show (myVar.ToString()); ), it displays
System.Char[].


Thanks.
 
VM said:
How would I need to call MessageBox.Show() so it displays a variable of type
char[] of 9 chars (char[8]) ?

If I use it normally (MessageBox.Show (myVar.ToString()); ), it displays
System.Char[].

Use the String(char[]) constructor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top