Gasman
Enthusiastic Amateur
- Local time
- Today, 19:24
- Joined
- Sep 21, 2011
- Messages
- 16,743
Page 29
You specify
and then
but then use
so the compile balked at mcolCtls
Changing them all to mcolCtls allows a compile? So which should it be please?
Edit:
You specify this on 37
but have not defined cBackColorFocus
You specify
Code:
Private colCtls As Collection
Code:
Private Sub Class_Initialize()
Set colCtls = New Collection
End Sub
Private Sub Class_Terminate()
Set colCtls = Nothing
End Sub
but then use
Code:
Case acComboBox
Dim lclsCtlCbo As clsCtlCbo
Set lclsCtlCbo = New clsCtlCbo
lclsCtlCbo.mInit ctl
mcolCtls.Add lclsCtlCbo, ctl.Name
Changing them all to mcolCtls allows a compile? So which should it be please?
Edit:
You specify this on 37
Code:
Private Sub mctlCbo_GotFocus()
mctlCbo.BackColor = cBackColorFocus
End Sub
Last edited: