About Adding controls dynamically

  • Thread starter Thread starter crazyjh
  • Start date Start date
C

crazyjh

hello

i want to add some controls in according of the time.
but when the time change, i call the method again to add controls again,No
effect!
i think maybe i should unload the controls adding before,how can i unload
it??

pls help me,thanks
 
Crazyjh,

For using dynamic controls it is important to know if it is about a webpage
or a winform. They act completely different in this, so let us know that to
make the answers not only confusing.

Cor
 
thanks for your reply

the development based on vb.net2005 + winform




----- Original Message -----
From: "Cor Ligthert [MVP]" <[email protected]>
Newsgroups: microsoft.public.dotnet.languages.vb
Sent: Monday, August 07, 2006 6:09 PM
Subject: Re: About Adding controls dynamically


| Crazyjh,
|
| For using dynamic controls it is important to know if it is about a
webpage
| or a winform. They act completely different in this, so let us know that
to
| make the answers not only confusing.
|
| Cor
|
 
crazyjh said:
i want to add some controls in according of the time.
but when the time change, i call the method again to add controls again,No
effect!
i think maybe i should unload the controls adding before,how can i unload
it??

You can remove the control from the container's (form, control) 'Controls'
collection.
 
Back
Top