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.
 
Back
Top