By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

TAB character in TextBox

P: n/a
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?

--
Clive Tooth
http://www.shutterstock.com/cat.mhtml?gallery_id=61771
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 25, 6:05 am, "The Last Danish Pastry" <cli...@gmail.comwrote:
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?

--
Clive Toothhttp://www.shutterstock.com/cat.mhtml?gallery_id=61771
you should be able to replace the tab by whatever in the keydown
event..
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.