java
sql
php
python
mysql
database
linux
ruby-on-rails
visual-studio
multithreading
eclipse
flash
html5
json
perl
oracle
cocoa
tsql
php5
api
In the Intermediate Window:
?RichTextBox1.Text results in "Hi mint " even though with AcceptTab=True we think it should be "Hi[TAB Key]Mint"
"Hi mint "
AcceptTab=True
"Hi[TAB Key]Mint"
?RichTextBox1.Rtf results in
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 Hi\tab mint\tab\par }"
Here is the trick I believe your looking for:
RichTextBox1.SaveFile("C:\abc.txt", RichTextBoxStreamType.UnicodePlainText)
I ended up searching for all instances of a 'TAB' character being pressed and replacing it with a '\t' and that worked:
Dim tabString = Convert.ToChar(" ") //This is the [] string RichTextBox.Text = RichTextBox.Text.Replace(tabString, " ")
Not the best solution, still do not understand why the RichTextBox isn't picking up on the TAB key automatically but it works for now.