|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom controls and eventsHi 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" <mfoster@nospam.btinternnet.com> schrieb: How did you declare the events ('Public Event Bla(...)')?> 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 -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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/> |
|||||||||||||||||||||||