creating a new control

I've created my first custom control - a combobox.
Took a bit of digging to get it laid down right, but I think I have it now.
However, on my main form, I have a sub that is called by the containing comboboxes there.
I'd like to be able to call the same sub from my custom class. I imagine I could just copy/paste it to the new class, but I'm curious if there's a more efficient way?

If Parent Is Nothing Then
PopulatePrimaryCbo(Me)
Else
ParentBox = Parent
End If
End Sub

Then if ParentBox is nothing, you know you are the parent. Otherwise you have a reference to the parent already handy. Also, you may want to make PopulatePrimaryCbo() a member of the new control. Just have a public method called 'Populate()' that you can call from your main code, and perhaps pass a database connection to if needed.

I think that you misunderstood what I meant. When you are creating a custom control, then you don't really need an internal control instance. The class that you create is the control, and you should have that event handler outside of the class, on the form where you created the instance of the control.

Hmm - I suppose I still don't understand. This is my first attempt at creating a custom class/control, so maybe that's why this is so difficult for me...I found the 'withevents' item on another site, and it worked, tho apparently it's not the right route to take.

Basically my situation calls for a dynamically created 'main' combo to reference a partner combo. As the main combo is selected, the secondary gets populated with items that reference what was chosen in the main combo.
My thoughts were to use the tag property, but from that thread, it seemed like the better route was to create a subclass and add additional properties.

If I'm going to create this subclass, I need someway of identifying that a selection was made...and then some way to point it to it's corresponding partner combo (though I'm still not convinced that this is even the right way to go...)

See how it uses "Me" instead of CustomCombo? Remember, you'll also need to add a property that will be used so this new control knows about it's partner, and knows whether it's the parent or the child.