In the Visual Studio Help, search for:
1)Creating an Event Handler at Run Time in Web Forms Pages
2) Creating Event Handlers at Run Time for Windows Forms
Hope that helps,
Michelle
***Disclaimer: This posting is provided "as is" with no warranties and confers no rights.***
--------------------[color=blue]
>From: "leon" <faleusqui@hotmail.com>
>References: <OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl> <Xns953C81434C6nntprogerscom@[/color]
140.99.99.130>[color=blue]
>Subject: Re: do you know how i to create events dynamicaly?
>Date: Thu, 5 Aug 2004 11:51:47 -0500
>Lines: 26
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
>Message-ID: <OYuKDyweEHA.2848@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 200.75.94.158
>Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTF EED01.phx.gbl!TK2MSFTNGP08.phx.gbl![/color]
TK2MSFTNGP10.phx.gbl[color=blue]
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:252376
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>but it is in VB, I need in C#?
>
>lion
>
>
>"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
>news:Xns953C81434C6nntprogerscom@140.99.99.130. ..[color=green]
>> "leon" <faleusqui@hotmail.com> wrote in
>> news:OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl:
>>[color=darkred]
>> > hello friends, i am writing a page aspx and creating controls
>> > dinamicaly and then
>> > i must to create for each control the events as well.
>> >
>> > Anybody to know how?????[/color]
>>
>> Use AddHandler to add event handlers to controls.
>>
>>
>>
>> --
>> Lucas Tam (REMOVEnntp@rogers.com)
>> Please delete "REMOVE" from the e-mail address when replying.
>>
http://members.ebay.com/aboutme/coolspot18/[/color]
>
>
>[/color]