-
Aug 9th, 2009, 01:50 PM
#1
Thread Starter
Fanatic Member
Control Help
Lets say I have a control called TestControl and it is a combobox. Then in two other labels I have the words "test" and "control" is there a way where I can combine both of those labels to access the combobox? ie
label1.Caption & label2.Caption.Additem "Car"
-
Aug 9th, 2009, 01:53 PM
#2
Re: Control Help
You could, from within the usercontrol? Usercontrol.Controls(Label1.Caption & Label2.Caption).AddItem "Car"
-
Aug 9th, 2009, 02:03 PM
#3
Re: Control Help
Or if you aren't talking about a UserControl then just
Controls(Label1.Caption & Label2.Caption).AddItem "car"
-
Aug 9th, 2009, 02:11 PM
#4
Re: Control Help
Originally Posted by MartinLiss
Or if you aren't talking about a UserControl then just
Controls(Label1.Caption & Label2.Caption).AddItem "car"
Good catch, for some reason I was focusing on usercontrol. Well, now both possibilities are covered
-
Aug 9th, 2009, 04:50 PM
#5
Thread Starter
Fanatic Member
Re: Control Help
Thanks! Just what I was looking for!
-
Aug 12th, 2009, 02:56 AM
#6
Thread Starter
Fanatic Member
Re: Control Help
Can this work for with a form also?
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
|