Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Trouble with button control

$
0
0

Hi,

I am using a program which reads the voltage from my usb device and displays it on the screen.

The voltage value is updated only when i click the button.

I want the voltage to be updated continuously when i click the button once.

BUT,

When I add a loop to inside the function of key switch the program displays only one value but after the certain loop is run.

But wen i click continuously

on the button without loop at very high  speed it updates properly.

Any Suggestions. I ve used timer, all loops to check.

Dim areadpending As Boolean = False Private Sub rwButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rwButton.Click, rwButton.Click areadpending = True readr() End Sub Private Sub readr() FindTheHid() ReadAndWriteToDevice() End Sub




Viewing all articles
Browse latest Browse all 12583

Trending Articles



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