Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends, I have a RichTextBox in my project which serves as Document sheet for my TextEditor Project. Now, the problem i have when running my project is that the typed text in the Document sheet does not start at the extreme top-left corner but leaves a big indented space to precede before the characters appear. Even when i continue typing in characters, it wraps around at the right end of the Document sheet and leaves the same indented space before beginning the next line. I have tried setting the margins property of the RichTextBox but it does not work. Please any kind of help on this problem will be greatly appreciated, thank you.
Posted
Comments
Sergey Alexandrovich Kryukov 5-May-11 20:03pm    
First of all, rename the title if you need some help. "Start position" is a standard term referred to a position of a character inside a text buffer, not layout.
--SA

1 solution

I think this is just some bug. Please do yourself a favor: create a brand new application and do the minimum: add RichTextBoxControl to it and run. You won't see this problem. Compare properties of the control. What you have changed will be shown in bold. Narrow down your search. Show small relevant part your code if you still did not spot the reason.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900