Terry,
What replaces "locking" a text or "combo" box so that input is not
allowed? Do not want to use disable
Try the .ReadOnly property.
How can you trap all keyboard input and set it equal to nothing?
Not quite sure I understand what you're trying to do here. If developing a
windows form you can capture the keypress event. Something like the
following:
Private Sub frmMyForm_Load( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
AddHandler somecontrol.Key Press, AddressOf CheckMyKeyPress
End Sub
Private Sub CheckMyKeyPress (ByVal sender As System.Object, _
ByVal e As System.Windows. Forms.KeyPressE ventArgs)
Select Case Asc(e.KeyChar)
Case AscW(ControlCha rs.Cr) 'Enter key
txtStatus.Text = "You Pressed The Enter Key"
Case Else ' Everything else
Exit Sub
End Select
End Sub
HTH,
Raymond Lewallen