Friday, December 5, 2008

Operator '&' cannot be applied to operands of type 'string' and 'string' - CS0019

Operator '&' cannot be applied to operands of type 'string' and 'string' - CS0019



MessageBox.Show("Hello " & "World");


should be



MessageBox.Show("Hello " + "World");



Try stringbuilder also

1 comment:

  1. Thanks

    I was having trouble with a listbox, I was trying to add diferent variables to one line and this was the solution =)..

    ReplyDelete