Re: Creating controls at runtime
- From: pargat.singh@xxxxxxxxx
- Date: 7 Nov 2005 20:03:05 -0800
Thanks Bruce.I appriciate your kind help and you put me in the right
direction.It work.
Thanks,
Pargat
Bruce Wood wrote:
> You should do it the same way that the Visual Studio Designer does it.
> You have a reference to a ListBox, right? Just write the same code that
> the Designer would have written:
>
> oObjCMB.SelectedIndexChanged += new
> System.EventHandler(CMB_SelectedIndexChanged);
>
> ...
>
> private void CMB_SelectedIndexChanged(object sender, System.EventArgs
> e)
> {
> ...
> }
>
> I believe that Intellisense will even help you write the method header.
.
- References:
- Creating controls at runtime
- From: pargat . singh
- Re: Creating controls at runtime
- From: Bruce Wood
- Creating controls at runtime
- Prev by Date: Re: Creating controls at runtime
- Next by Date: Newbie .asp question
- Previous by thread: Re: Creating controls at runtime
- Next by thread: Re: Threading issues...
- Index(es):
Loading