将文本设置为Textbox1.Text =" P" [英] Set text to Textbox1.Text = "P"
本文介绍了将文本设置为Textbox1.Text =" P"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个小问题解决方案。
按钮1中的
我代码=
Textbox1.Text =P;
当我点击textbox1中的button1时show = P
但是我想要
II按下按钮1在textbox1中3次将显示=PPP
如果按4次则会显示=PPPP
怎么办这个?
使用我当前的代码我按了按钮1 1000次。 shows =P
感谢高级
解决方案
嘿那里,
只需将'P'添加到TextBox的现有值,
TextBox1.Text = TextBox1.Text + P;
或
TextBox1.Text + = P ;
Azee ...
你要求的是如何连接字符串 [ ^ ]
你想要的东西像这个:
Textbox1.Text + = P 跨度>;
I need a small problem solution.
in button1 I code =
Textbox1.Text = "P";
When I click on button1 in textbox1 show =P
but I want
I I pressed button1 3times in textbox1 will show="PPP"
If pressed 4 times it will show ="PPPP"
How to do this?
With my current code of I pressed button1 1000 times it. shows = "P "
Thanks in advanced
解决方案
Hey there,
Just add 'P' to the existing value of the TextBox,
TextBox1.Text = TextBox1.Text + "P";
or
TextBox1.Text += "P";
Azee...
What you are asking for is How to Concatenate Strings[^]
You'd want something like this:
Textbox1.Text += "P";
这篇关于将文本设置为Textbox1.Text =" P"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文