Re: Creating controls at runtime



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.

.


Loading