|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
List Box to Text Box Problem
I am writing items from a list box to a text box so I can put the items on the Clipboard. I can't get a line feed on the text box. I tried text1.setfocus then tried sendkeys (enter) but that didn't work neither did sendkeys ~. I use text1.text=text1.text + list1.list (n). Then I want to put the line feed in for the next entry.
|
|
#2
|
|||
|
|||
|
Make sure your textbox has multiline enabled.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Multiline is enabled and it still does not start a new line.
Quote:
|
|
#4
|
|||
|
|||
|
Use & as the concatenation operator
A typical multi-line string might be newStr = list1.list(0) & vbcrlf & list1.list(1) & vbcrlf & list1.list(2) & ... |
|
#5
|
|||
|
|||
|
Thank you Doug. It worked. I learned something new.
![]() Quote:
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > List Box to Text Box Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|