Jeremy,
As the other's suggest only the class itself can raise its events. To allow
derived classes to raise base class events there is a standard Event pattern
you should consider implementing in your classes.
http://msdn.microsoft.com/library/de...Guidelines.asp
Knowing this pattern will allow you to create a custom ComboBox class that
will allow you to raise the event you want.
Something like:
Public Class ComboBoxEx
Inherits ComboBox
Public Sub RaiseSelectionC hangeCommitted( )
MyBase.OnSelect ionChangeCommit ted(EventArgs.E mpty)
End Sub
End Class
Then instead of using ComboBox, you can use ComboBoxEx on your forms, then
every place you want to raise the SelectionChange Committed event, you simply
call the RaiseSelectionC hangeCommitted method.
Hope this helps
Jay
"Jeremy" <je****@ninprod ata.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have a combobox with a SelectionChange Committed event handler, and am
having a problem raising this event.
For example,
raiseEvent mycombobox.Sele ctionChangeComm itted
gives me an error about not being ended properly. But it won't accept
parameters either. What's the trick here?
Jeremy