Malfunction Posted May 13, 2004 Posted May 13, 2004 Smiple task: I want my rtb to catch the tab key and actually add a "tab" to it's text instead of deactivating itself. I set tabstop to false but that only prevents the rtb being activated by tab not being deactivated. Maybe the next problem is a result of the rtb being deactivated by tab: protected override void OnKeyUp(KeyEventArgs e) { MessageBox.Show(e.KeyCode.ToString()); base.OnKeyUp (e); } This will give me the name of every key but the tab key. If I get that to work (prevent the rtb from being disabled) how do I add the tab to the rtb's text? (couldn't find the escape sequence) Or did I miss a simple property that enables tabs? Quote Debug me...
Malfunction Posted May 13, 2004 Author Posted May 13, 2004 Quote Yup' date=' you missed AcceptsTab = True.[/quote'] uuppsss...... :o Quote Debug me...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.