Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
obj.New1(False)
obj.FromControl("Listbox1")
keyDownEvent.New1(obj.Value,"KeyPress")
End Sub
Sub keyDownEvent_NewEvent
obj.Value = keyDownEvent.Data
If Asc(obj.GetProperty("KeyChar")) = 13 Then
Msgbox("The following item was selected: " & _
ListBox1.Item(ListBox1.SelectedIndex))
End If
End Sub