1
votes

I have a textbox with it's multiline property set to true, and dragged it out. As it stands, whenever I type and the next word is going to be beyond the boundaries of the textbox, it'll create a new line instead. I want to be able to keep typing without it adding a new line.

Like in Notepad, when you're going to write beyond the boundaries of the box, it'll let you keep typing and won't start at a new line untill you press enter. Instead, you can just use the scrollbar to scroll horizontally between your text. How do I do that with the textbox?

1
Just set its ScrollBars property to ScrollBars.Both.Adriano Repetti
@Adriano I already did but there's no use in doing it if everytime you're going to write beyond the boundaries of the textbox it starts you at a new line instead. As a result, there's nothing to scroll to.CsharpFrustration

1 Answers

2
votes

Try turning off the word wrap feature:

textBox1.WordWrap = false;