I'm trying to set tab stops within a RichTextBox; and have tried a solution described by CajunCenturion some time ago, to which I've inserted a link below. It works fine, and I've used it in my code.
thread222-527497
However, whenever I load a rich text document INTO this RichTextBox, it appears that the tab stops revert to their original settings, and I can't seem to reset them to the ones I want. Having said that, when I clear the text in the box, the settings immediately change back to the ones I want! Can anybody tell me what is happening here?
What I want to do is to specify that the tab stops are every fourth character, so that when I load some text into the box which contains tabs, those tabs will be positioned every fourth character (so that for example if the document that has just been loaded has three tabs in succession at the start of the line, the next character will appear in position 12).
Many thanks for any help received.
thread222-527497
However, whenever I load a rich text document INTO this RichTextBox, it appears that the tab stops revert to their original settings, and I can't seem to reset them to the ones I want. Having said that, when I clear the text in the box, the settings immediately change back to the ones I want! Can anybody tell me what is happening here?
What I want to do is to specify that the tab stops are every fourth character, so that when I load some text into the box which contains tabs, those tabs will be positioned every fourth character (so that for example if the document that has just been loaded has three tabs in succession at the start of the line, the next character will appear in position 12).
Many thanks for any help received.