>Thanks again bonnie.
>
>BTW is that also the event I would use to translate an "enter" key in a "tab" key. Not sure I like sendkeys to do that.That would probably be fine Marc ... I haven't had the time to actually test it today though ...
~~Bonnie
>
>>I think you want to use a different event Marc. Try overriding the ProcessDialogKey() method like so:
>>
>>
>>Protected Overrides Function ProcessDialogKey(ByVal keyData As Keys) As Boolean
>> If ((keyData = Keys.Enter) _
>> AndAlso (Me.Text = "")) Then
>> Me.OnValidating(New CancelEventArgs)
>> End If
>> Return MyBase.ProcessDialogKey(keyData)
>> End Function
>>
>>
>>
>>~~Bonnie