|
-
Nov 4th, 2002, 08:18 PM
#1
Thread Starter
Junior Member
Listbox Control Changes
in VB6 it was possible just to edit Listbox entries as follows:
Listbox1.ListItems(1).Text = "Some random text"
in VB7 the only option under the ListItems class (Items property) is GetType(). I've been able to use ToString() to return the string, but FromString() doesn't work. How do I do this in VB7?
CodeMagician
Ain't Codn' Fun?
-
Nov 4th, 2002, 08:36 PM
#2
yay gay
lol but GetType() is to GET not to GIVE! in vb6 we're used that functions are read/write but in .NET most of them have a read only and another write only functions
-
Nov 4th, 2002, 09:10 PM
#3
Thread Starter
Junior Member
that's all well and good, but how do I do it? What's the function?
CodeMagician
Ain't Codn' Fun?
-
Nov 4th, 2002, 09:14 PM
#4
Items collection allows you to read or write to the listbox
ListBox1.Items(2) = "ABC"
-
Nov 4th, 2002, 09:24 PM
#5
Thread Starter
Junior Member
Arg. I though I'd tried that. Thanks.
CodeMagician
Ain't Codn' Fun?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|