Word-Complete problem with custom text-box

  • Thread starter Thread starter Kishore
  • Start date Start date
K

Kishore

Hi,
I have a custom text box that that has some additional
functionality. One the features are the input focus is transferred to
the next control when Enter or Tab key is pressed. The control scans
each key stroke on Key Up event and transfers the focus to the next
control when the key stroke is Enter or Tab.
This works fine when the user inputs the data. But when the user
uses the Word Complete feature, the KeyCode sent to the program is of
Enter Key. This causes my program to lose the focus of the text box.
Is there a way to distinguish between a user input and word complete
input? Is there any work around for this problem?
Any help is really appreciated.
Thank you...
Kishore.
 
Did you write this TextBox? If so, sounds like a design problem. If
not, and this is a 3rd party component using keybd_event to send, could
you check the sender?
 
Hi Mr.Payne,
I have the source for this text-box. The text box was written in C#.
How can I check the sender?

My function:
void TextBox_KeyUp(object sender, KeyEventArgs e)

The sender in this case is the text-box. I was checking the key code
using e.KeyCode

Thanks...
Kishore.
 
Back
Top