Author: sipi41 | Posted on: 8/18/2008 8:20:25 AM | Views : 573

Hello masters of this forum!!

 I have a question... I know that I can add new controls dinamically using something like this on a subruoutine...

 dim mytext as new textbox()
mytext.text = "hello world!"
mytext.id = "text1"

myform.controls.add(mytext)

NOW THE MILLION DOLLAR QUESTION... How do I remove a control... let's say I want to remove it?? I used the controls.remove but it display an error saying that the control MYTEXT is not part of the UI... and/or the name has not been registered... is this possible to remove a control created dinamically??

I also tried something called myform.clear(), but it clear all controls on MYFORM... please help and thank you!!

Billy.
...

Go to the complete details ...