D
D
Dominik092016-02-10 13:05:58
C++ / C#
Dominik09, 2016-02-10 13:05:58

How to determine how many characters are left before line break in RichTextBox?

I need to perform a certain action when 4 characters are left to enter before the line is moved to a new line. I need to somehow find out how many characters are left from the right edge. Can you tell me how to set the right condition?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Fedoryan, 2016-02-10
@AnnTHony

You can install some monospaced font, such as Courier New.
Calculate the maximum number of characters that fit into a string.
Ready!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question