CeSuX Weeder CeSuX Weeder - 1 year ago 101
C# Question

WPF RichTextBox puts 2 lines instead of 1 when clicking enter

I am working with a RichTextBox, and whenever I click enter, the text skips one line and goes to other.

As following:

Text... (Clicks enter)

Text... (Goes here)

Instead of:

Text... (Clicks enter)

Text... (Goes here)

How can I fix this?

Answer Source

Try this solution: How do I change RichTextBox paragraph spacing?

The issue you are seeing is related to Paragraph spacing.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download