I have a windows multiline TextBox and is readonly. Can I check if the text within it has reached the the end? My purpose is to enable scroll if text is greater than the TextBox capacity.
Try this to check if string width is less than the textbox width:
if(TextRenderer.MeasureText(txtBox.Text, txtBoxFont).Width < txtBox.Width)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With