vb.net 如何在 Microsoft Access 2010 的文本框中创建 2 行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14619671/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 12:07:05  来源:igfitidea点击:

how to make 2 lines in a text box in microsoft access 2010

vb.netms-access

提问by Zvi W.

I Have Text Box With A Total Of My Address Book "address" & "city" & "State" & "Zip" But I Need A New Line Befor CITY

我有一个包含地址簿“地址”和“城市”“州”和“邮编”的文本框,但我需要在城市之前换行

回答by Tom Collins

  • If you're using VBA or a query to build your address, the constant: vbCrLfwill give you a new line.
  • If you're typing into a textbox, then it's either Enteror Ctrl-Enter, depending on the property 'Enter Key Behavour' (on the 'Other' tab) to enter a new line.
  • If you're trying to use the property of a textbox, such as Control Sourceor Default, then you need to use Chr(13) & Chr(10)
  • 如果您使用 VBA 或查询来构建您的地址,则常量:vbCrLf将为您提供一个新行。
  • 如果您在文本框中输入内容,则它是EnterCtrl-Enter,具体取决于属性“Enter Key Behavour”(在“其他”选项卡上)以输入新行。
  • 如果您尝试使用文本框的属性,例如Control SourceDefault,则需要使用Chr(13) & Chr(10)