I’m trying to add a verticle scroll bar to my dynamic Textbox.
Here is the code
TextBox spellText = new TextBox() { Multiline = true, ScrollBars.Vertical };
I get the error:
Invalid initializer member declarator
ScrollBars.Verticle = True also does not work.
Assuming WinForms, the declaration isn’t quite right. Try this: