TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kevin Davis
NA
52
51.2k
Getting items from combobox into an array, then to a string
Sep 1 2011 2:23 PM
Can someone please tell me what I'm doing wrong here?
I'm trying to place all the items from a combobox into an array, but it doesn't seem to be working for me.
My code:
Dim name as string
Dim list As New ArrayList
For i = 0 To form.cbSMTPAccounts.Items.Count - 1
name = form.cbSMTPAccounts.Items(i).text.ToString
list.Add(name)
I keep getting "Public member 'text' on type 'String' " error,
Incidentally, Once this array is working properly, I would like to convert it to a single string if possible...if that makes any sense
kevin
Reply
Answers (
5
)
C# check for sql server errors
C# active directory