momentary switch with Visual Basic

thank you for reply Paul,you are right,i tried before i post but still cant find the right code...anyway i will keep trying until i get it right.Never lose my hope :smiley: