TextBoxMode Enumeration
Specifies the behavior mode of the text box.
Assembly: System.Web (in System.Web.dll)
The TextBoxMode enumeration represents the different display options for TextBox controls.
SingleLine mode displays the TextBox control as a single row. If the user enters text that exceeds the physical size of the TextBox control, the text will scroll horizontally.
MultiLine mode displays the height of the TextBox based on the Rows property, and allows data entry on multiple lines. The text will automatically wrap if the Wrap property is set to true. If the user enters text that exceeds the physical size of the TextBox, the text will scroll accordingly and scroll bars will appear.
The behavior of Password mode is similar to SingleLine mode except that all characters entered in the TextBox control are masked and are not saved in view state.
| Topic | Location |
|---|---|
| How to: Set a TextBox Web Server Control for Password Entry | Building ASP .NET Web Applications |
| How to: Set a TextBox Web Server Control for Password Entry | Building ASP .NET Web Applications |
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.