I aleady created a program counter number(v1) once your click the button it will show in label at Form 1 by using visual basic 2015. (

program counter number (v2):

So I did some experiment like I have a button in form1 while in form I add some label where it will show the number when the time I click the button from form1. But unfortunately, it doesn't show the number.

 Private Sub cmdcs_Click(sender As Object, e As EventArgs) Handles cmdcs.Click

        Dim callform2view As New frm2
            //form 1
            //
        '   lblcs.Text = Val(lblcs.Text) + 1
        callform2view.numberpass = lblcs.Text
        frm2.Show()

        End If

#######################################################################################

  Public Property numberpass As String

    Private Sub frm2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        //form2
        lbl_cs.Text = numberpass

    End Sub

Hoping someone right there can help me out. Even it may sounds like a minor problem with the other.

Thank you.

Two thoughts on this.

  1. Use a global variable.
  2. Try frm2.lbl_cs.Text = "This is what I want here."

Mybe try to assign a string to lblcs.Text like:
lblcs.Text = cstr(Val(lblcs.Text) + 1)

commented: It doesn't work Sir. +0