Invoke Code Activity Button Function

I have this VB Code used in an Invoke Code Activity in UiPath. Can anyone suggest a function which changes the values of variable btnClicked in True when the button is pressed?

Dim lblButton As New System.Windows.Forms.Button()
lblButton.AutoSize = True
   btnClicked=False
            lblButton.ForeColor = System.Drawing.Color.Black
            'lblButton.Location = New System.Drawing.Point(5, 10)
   lblButton.Left=250
            lblButton.Name = "lblButton"
            lblButton.Size = New System.Drawing.Size(50, 50)
            lblButton.TabIndex = 4
            lblButton.Text = "End data acq"
   lblbutton.Visible=btnVisible

   btnClicked=True