Here is a chunk of what I used to get it to work.
DrJavaJoe, you got me thinking about setfocus.
I'm not sure if this is what you meant, but it works.
My next question is, the mousemove event, do you figure it eats the system resources up?
Thanks
Private Sub Command1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
iTempButtonIndex = Index
PopupMenu mnuRightClick
End If
If Button = vbLeftButton Then
Select Case Index
Case 39
frmButtonsDownTime.Hide
Case Else
frmEnterValue.Caption = "Enter Downtime in Minutes."
frmEnterValue.txtValue.MaxLength = 3
frmEnterValue.Command3(10).Enabled = False
frmEnterValue.Show vbModal
End Select
End If
End Sub
Private Sub Command1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
Command1(Index).SetFocus
End Sub