Dynamic Control Example for 2.0?
- From: lucius <lucius@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 08:04:21 -0400
Could someone provide a quick example for .NET 2.0 WinForms of how to
dynamically add a control "btnDynamic" to a form when button
"btnStandard" is clicked. I don't want to hardcode "btnDynamic" to the
form and make it simply visible, I don't want it to exist at runtime
until "btnStandard" is clicked, but when "btnDynamic" is created and
instantiated, it participates in the form's full event cycle and has
its own click event and etc.
Thanks.
.
- Follow-Ups:
- RE: Dynamic Control Example for 2.0?
- From: Linda Liu [MSFT]
- Re: Dynamic Control Example for 2.0?
- From: Stephany Young
- RE: Dynamic Control Example for 2.0?
- Prev by Date: Re: ListBox SelectionMode None ??
- Next by Date: Re: cross-thread UI updating?
- Previous by thread: ListBox SelectionMode None ??
- Next by thread: Re: Dynamic Control Example for 2.0?
- Index(es):