Re: Creating controls at runtime
- From: "Bruce Wood" <brucewood@xxxxxxxxxx>
- Date: 7 Nov 2005 16:00:04 -0800
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.
.
- Follow-Ups:
- Re: Creating controls at runtime
- From: pargat . singh
- Re: Creating controls at runtime
- References:
- Creating controls at runtime
- From: pargat . singh
- Creating controls at runtime
- Prev by Date: Problem with HttpWebRequest to read a web page
- Next by Date: Re: Creating controls at runtime
- Previous by thread: Creating controls at runtime
- Next by thread: Re: Creating controls at runtime
- Index(es):
Relevant Pages
|
Loading