im adding text to a richTextBox through code. like so:
i want to be able to set tabs for my text but i cant get it done.
heres what ive tried:
it has absolutely no effect on the position of my text in the text box. actually, when i try to assign tabs[0] to SelectionStart, SelectionStart is always left at 0,no matter how i try to assign a value to it. what am i doing wrong?
Code:
myRichTextBoxEx.SelectedText = "The following is a list of fintans test:"+ "\n" ;
i want to be able to set tabs for my text but i cant get it done.
heres what ive tried:
Code:
int[] tabs = {100,300,600,900};
this.myRichTextBoxEx.AcceptsTab = true;
this.myRichTextBoxEx.SelectionTabs = tabs;
myRichTextBoxEx.SelectionStart = tabs[0];
myRichTextBoxEx.SelectedText = "The following is a list of fintans test:"+ "\n" ;
it has absolutely no effect on the position of my text in the text box. actually, when i try to assign tabs[0] to SelectionStart, SelectionStart is always left at 0,no matter how i try to assign a value to it. what am i doing wrong?