|
|
#1 |
|
Hyperactive Member
Join Date: Feb 01
Posts: 421
![]() |
LB_GETTEXT, does it work?
I've tried many times trying to get ALL the text from a ListBox. But nothing seems to work, I've tried searching through posts and stuff, but nobody seems to want what I need. How can I get all of the text from a ListBox, and put it in a TextBox? Example:
The ListBox looks like this: Dog Cat Cow Horse and when you press a button, the TextBox looks like this: Dog Cat Cow Horse Anyone know how to do this??
__________________
[vbcode] ' comment Rem remark [/vbcode] |
|
|
|
|
|
#2 |
|
Guru
Join Date: Jun 99
Location: Red Wing, MN, USA
Posts: 2,169
![]() ![]() |
In a Module:
VB Code:
VB Code:
|
|
|
|
|
|
#3 |
|
Hyperactive Member
Join Date: Mar 01
Posts: 273
![]() |
Private Sub Command1_Click()
Dim i as integer Dim s as String for i = 0 to List1.Listcount-1 s=s & List1.List(i) & vbNewLine next Text1.Text = s end sub |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|