471,330 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

TAB character in TextBox

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
1 3971
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.

Similar topics

9 posts views Thread by refer_to_website | last post: by
9 posts views Thread by Jerry | last post: by
5 posts views Thread by Susan Geller | last post: by
13 posts views Thread by BluDog | last post: by
reply views Thread by Phil C. | last post: by
2 posts views Thread by Nathan Sokalski | last post: by
2 posts views Thread by RN1 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.