To configure the cells in a listbox, table, or tree control to create a new line in a cell when you press the <Enter> key on the keyboard, right-click the control and select Multi-line Input from the shortcut menu.
If you enable multiple line input, right-click the control and select Autosize Row Height from the shortcut menu to size each row to its contents and display all the data in each cell. This option is enabled by default.
You also can use the Multiple Line Input property to configure the cells in a listbox, multicolumn listbox, table, or tree control to create a new line in a cell programmatically when you press the <Enter> key.