|
-
Jun 17th, 2010, 07:41 AM
#1
Thread Starter
Lively Member
Fill Combobox with List of Control names
Hi,
I have a WinForms applciation, I wrote a function that returns a list of all the controls on the form. The function returns a list of control objects.
My target is to fill up a combo box with a list of the control names so that once clicked I set focus to it.
So what is the correct code for converting a List(Of Control) to an array of string.
Thanks
-
Jun 17th, 2010, 07:49 AM
#2
Frenzied Member
Re: Fill Combobox with List of Control names
you can use Control.Name directly, no need of any conversion
-
Jun 17th, 2010, 09:50 AM
#3
Thread Starter
Lively Member
Re: Fill Combobox with List of Control names
well, I won'd be able to access the name property unless I iterate through the List (Of Control). I was assuming there was a quicker way using one line of code. I will iterate then.
Thanks anyway
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
|