Question Special function of Button

decloedt

Member
Joined
Oct 13, 2010
Messages
6
Programming Experience
Beginner
Hello,
I am working at the moment with ASP.NET in the language basic.
I want to know how you do this:
If i press on the button, i always send a signal.
If i stop with pressing on the button, i don't send a signal.

I need this because i want to control the µC Velleman K8055. So I press on the button i put one digitaloutputchannel high. If i stop with pressing The channel goes low.

Maybe you can do it with a timer. If i press on the button you see on a label that's counting like a stopwatch. If you stop pressing on the button everything stops. And you see how long you pressed on the button.

Best regard
 
Hi

You can use the buttons mousedown event to trigger the timer and count while it's being held down and the mouseupevent on the same button to trigger the timer to stop when released.
 
Hi,
I don't know that how to do it in ASP.NET Can you write it and send me the code?
I just need that for program. Only that of the button. I would really appreciate it.
 
Back
Top