开发者

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

开发者 https://www.devze.com 2023-03-24 22:52 出处:网络
i want to set the text of a textbox to a c++ code on button click. i\'ve tried using textBox1.Text 开发者_JAVA百科= \"c++ code here\";

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

i've tried using

textBox1.Text 开发者_JAVA百科= "c++ code here";

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


You need to manually escape characters like ".

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

精彩评论

暂无评论...
验证码 换一张
取 消