Hi. I have several forms with a listbox and would like
to change the BackColor from a procedure that I
can call from each form's Load event(or what ever
event is relevant.
Any help will be appreciated.
James
>Hi. I have several forms with a listbox and would like
>to change the BackColor from a procedure that I
>can call from each form's Load event(or what ever
>event is relevant.
I suppose you want a procedure to do that?
Public Sub SetBackColor(ctl As Control)
ctl.BackColor = RGB(255, 192, 192) ' pink
End Sub
Then the Load event can call the procedure:
SetBackColor(Me.listboxname)

Signature
Marsh
MVP [MS Access]
JamesJ - 16 Jul 2005 10:45 GMT
Works fine. Thanks.
James
>>Hi. I have several forms with a listbox and would like
>>to change the BackColor from a procedure that I
[quoted text clipped - 10 lines]
>
> SetBackColor(Me.listboxname)