Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试向我的动态文本框添加一个垂直滚动条。
这是代码
TextBox spellText = new TextBox() { Multiline = true, ScrollBars.Vertical };
我得到错误:
初始化器成员声明器无效
ScrollBars.Verticle = True 也不起作用。
假设 WinForms,声明并不完全正确。试试这个:
TextBox spellText = new TextBox() { Multiline = true, ScrollBars = ScrollBars.Vertical };