Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Debug me...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...