8090 Detect and use button in VB


Hello All ,

I try to start a program on my 8090 Cards in VB express.

The problem are easy (maybe for you) , when I press a button, I need a message box with the text “Button1”.

I try to find a solution with

Dim choose as Integer
choose= Packlist.Items.Add(args.mask.ToString())
Select Case chosse
Case 1
Msgbox(“Button 1”)
Case 2
Msgbox(“Button 2”)

End select

=> with this solution when i press a button, the two msgbox appear on the screen.

Could you please help me ?


or could you please explain me why K8090.SendCommand(velleman.kits.8090Command.RelayStatus) can sent a value on return ?