billy431
billy431

Reputation: 11

how can i set the text of a textbox to a c++ code

i want to set the text of a textbox to a c++ code on button click.

i've tried using

textBox1.Text = "c++ code here";

but it gives errors because the code is in c#.

Upvotes: 0

Views: 380

Answers (1)

Anže Vodovnik
Anže Vodovnik

Reputation: 2345

You need to manually escape characters like ".

TextBox1.Text = "some code here \"test\" hello...";

Upvotes: 1

Related Questions