点击控件的计数时间。 [英] Counting times a control is clicked.
问题描述
任何人都可以告诉我是否有办法退还金额
按钮被点击的次数
我需要更改文本框中的文本和文本更改
每次单击按钮 - 最多6次,每次使用6
不同的文本值。
感谢您的期待。
Al @ n
" Al @ n" <一个******* @ discussions.microsoft.com>写道...有人能告诉我是否有办法返还按钮被点击的次数
>
这是一个技巧问题:-)你不能通过增加一个
计数器来跟踪吗?
创建模块级别变量,并通过按钮增加它点击
事件。除此之外,我不确定是否有这样的财产。
Al @ n <一个******* @ discussions.microsoft.com>在留言中写道
news:33 **************************** @ phx.gbl ... < blockquote class =post_quotes>任何人都可以告诉我是否有办法返回按钮被点击的数量
我需要更改文本中的文字每次单击按钮时框和文本都会更改
每次使用6个不同的文本值最多6次。
感谢您的期待。
Al @ n
*Al @ n <一个******* @ discussions.microsoft.com> scripsit:任何人都可以告诉我是否有办法返还按钮被点击的时间
我需要更改文字在文本框中,文本更改
每次单击按钮 - 最多6次,具有6个不同的文本值。
\\ \\\\
Private Sub Button1_Click(...)句柄......
静态n作为整数
n = n + 1
Me.Label1.Text = n.ToString()
结束子
///
-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>
Can anyone tell me if there''s a way to return the amount
of times a button is "clicked"
I need to change text in a text box and that text changes
each time the button is clicked-up to 6 times with 6
different text values.
Thanks in anticipation.
Al@n
"Al@n" <an*******@discussions.microsoft.com> wrote...Can anyone tell me if there''s a way to return the amount
of times a button is "clicked"
Is this a trick question :-) Wouldn''t you just keep track by incrementing a
counter?
Create a module level variablle and increment it via the Buttons Click
event. Other than that, i''m not sure there''s such a property.
"Al@n" <an*******@discussions.microsoft.com> wrote in message
news:33****************************@phx.gbl...Can anyone tell me if there''s a way to return the amount
of times a button is "clicked"
I need to change text in a text box and that text changes
each time the button is clicked-up to 6 times with 6
different text values.
Thanks in anticipation.
Al@n
* "Al@n" <an*******@discussions.microsoft.com> scripsit:Can anyone tell me if there''s a way to return the amount
of times a button is "clicked"
I need to change text in a text box and that text changes
each time the button is clicked-up to 6 times with 6
different text values.
\\\
Private Sub Button1_Click(...) Handles...
Static n As Integer
n = n + 1
Me.Label1.Text = n.ToString()
End Sub
///
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
这篇关于点击控件的计数时间。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!