TAB character in TextBox

  • Thread starter The Last Danish Pastry
  • Start date
T

The Last Danish Pastry

In a C# program have a multiline input text box (with AcceptsTab =
true).

Two questions:

1) The "tab positions" are every 8 characters, how could I change that
to 2?

2) Could I make the TAB key produce, say, two spaces, (or one even
space) instead of a tab character?
 
P

parez

In a C# program have a multiline input text box (with AcceptsTab =
true).

Two questions:

1) The "tab positions" are every 8 characters, how could I change that
to 2?

2) Could I make the TAB key produce, say, two spaces, (or one even
space) instead of a tab character?

you should be able to replace the tab by whatever in the keydown
event..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top