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?
Also - my selectionchange event isn't firing...I must have missed something... :(
Public Class CustomCombo
Public WithEvents CustomCombo As ComboBox
Public Sub New()
MyBase.Width = 145
Private Sub CustomCombo_SelectionChangeCommitted(ByVal sender As Object, ByVal e As System.EventArgs) Handles CustomCombo.SelectionChangeCommitted
CustomCombo.Visible = True