Home All Groups Group Topic Archive Search About

Custom controls and events

Author
17 Mar 2006 10:22 AM
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

Author
17 Mar 2006 12:00 PM
Herfried K. Wagner [MVP]
"Mark" <mfoster@nospam.btinternnet.com> schrieb:
> 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 S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
17 Mar 2006 12:52 PM
Mark
As public
eg
Public Event NewClientAdded( ByVal LngStoreId As Long, ByVal intnewType As
Integer)



Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eEsKgpbSGHA.256@TK2MSFTNGP14.phx.gbl...
> "Mark" <mfoster@nospam.btinternnet.com> schrieb:
>> 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 S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>