Yes, don't worry, they do call the same method. I guess now I am just more curious as to why it doesn't rasie the events. Probably some win32 programming feature I am clueless about.
I tried KeyUp, KeyDown, KeyPress, and no luck. I can use the Leave event of the textbox, but I was just trying to handle both the ENTER key and the TAB key at the same time.
oh, well the Leave Event is really what you'd want. Having them together might be nice, but the Enter key and the Tab key do different things, so it would make sense for to be handled differently. I'm sure you could have them both call the same Method to have your actual code in the same place though
Well, I believe it's because Tabs are only accepted as a character in a Multiline TextBox.
Here's the description of the AcceptsTab Property that makes me think that.
<i>"Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order."</i>
Capturing TAB Key
Smiles
Alex Titovich
Steve Adkins
B.Brown
I tried KeyUp, KeyDown, KeyPress, and no luck. I can use the Leave event of the textbox, but I was just trying to handle both the ENTER key and the TAB key at the same time.
vtrepan
GanitMandir
Lev Semenets
Stephen Orr
Here's the description of the AcceptsTab Property that makes me think that.
<i>"Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order."</i>