Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27376

Show integer value

$
0
0
Hello!

Dim i as integer = 0

How to make an event, that label1.text = me.i.tostring()
So, whenever the 'i' value is changed, label1.text is equal 'i'

example:
Code:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        me.i += 1

On the form1 we got, label1 and button1, each time we klick on button1 it increments 'i' by 1.
And the label1.text should be equal to me.i, without putting any extra codes to button1_klick event.

Viewing all articles
Browse latest Browse all 27376

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>