I have some code here for a UserControl that uses a ComboBox in it. My code works, but I want to be able to use the normal events of the ComboBox from the code that calls my UserControl. The name of the UserContrl is 'SelectBox', so I would really like to say:
If anyone could help, I'd appreciate it.Code:Private Sub SelectBox1_Click() 'Code Block End Sub
-Steve
Code:Public Sub AddItemValue(ByVal strText As String, strValue As String) Combo1.AddItem strText Dim m_strKeys() As String ReDim Preserve m_strKeys(Combo1.ListCount) m_strKeys(Combo1.ListCount - 1) = strValue End Sub Public Function GetValue(iIndex As Integer) As String GetValue = m_strKeys(iIndex) End Function


Reply With Quote
