Custom controls and events

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hi all

I just started usuing vb2005 after many years on vb6.

I had a go at creating a custom control. I added several events to my
control such as 'NewClientAdded'
and placed it on a test form.

What I'd like to know is how to get the events that I created to appear in
the list of events on the host form ( for that control)

All it shows is the events that were inherited from the base control class

Thanks

Mark
 
Mark said:
I just started usuing vb2005 after many years on vb6.

I had a go at creating a custom control. I added several events to my
control such as 'NewClientAdded'
and placed it on a test form.

What I'd like to know is how to get the events that I created to appear in
the list of events on the host form ( for that control)

All it shows is the events that were inherited from the base control class

How did you declare the events ('Public Event Bla(...)')?
 
As public
eg
Public Event NewClientAdded( ByVal LngStoreId As Long, ByVal intnewType As
Integer)
 
Back
Top