Greetings All,
I need a text box in
VB 2005 with event behavior similar to the AfterUpdate event in VBA. You enter text in the text box, and the event fires when the enter key is hit. I can't use "KeyPress" because it fires after the first key is pressed (and I need to enter text first). I could use "Leave", but I can't figure out how to get it to respond to the Enter Key and not the Tab key.
A part number will be entered into the text box, and, after the event fires, will bring up the appropriate record from a database table (using "tableadapter...get"). I know
VB 2005 will generate a generic toolstrip for this type of search (a parameterized query essentially)-- and this works fine. It builds a text box (for search entry) and a button, which calls the tableadapter. BUT, here too, I can't get the text box to respond to the enter key.
I've written many Access/VBA db apps for work. I'd like to convert them over to VBnet where possible -- this is my first real attempt.
This current project is an interface between a big db table of part numbers (which I left in Access) and a laser marker which etches text on finished parts. It connects through COM to all the functionality of the laser -- and I've got all this working well.
Now if I could just figure out how to make the dang Enter key work!
Thanks for any help.