Custom controls and events

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
 
H

Herfried K. Wagner [MVP]

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(...)')?
 
M

Mark

As public
eg
Public Event NewClientAdded( ByVal LngStoreId As Long, ByVal intnewType As
Integer)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top