borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Activex)Next Topic (Problems with U2lcom.dll) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : Remove a created object in a form
Poster Message
Nick2k3
Level: Big Cheese

Registered: 23-11-2003
Posts: 23

icon Remove a created object in a form

HI,

   My problem is i created controls at run time (just text boxes) and now after creating controls i want them to actually this appear without using the code' ".visible = false" after i click on them one by one...how do i do it?


(i forgot the password of my previous account how do i retrieve it?-NICK2k4000 (now nick2k3))



____________________________
Error 404 ...File not found...!!!!

29-10-2004 at 09:24 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Remove a created object in a form

It depends on how did you create your controls at run-time. If it was by Load, then you can remove them with Unload. If it was with Controls.Add method, then you should use Controls.Remove method.  Now, if you have only textboxes, then it would be the best to load them using Load function, so you can will need only this code

Private sub Text1_Click(INdex as integer)
    If index > 0 Then
        Unload Text1(index)
    Else
        Text1(0).Visible = False
    End If
end sub


____________________________
If you find the answer helpful, please mark this topic as solved.

29-10-2004 at 11:03 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Remove a created object in a form

As for the nick name, send PM to admin, and explain the problem.

____________________________
If you find the answer helpful, please mark this topic as solved.

29-10-2004 at 11:05 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : Remove a created object in a form
Previous Topic (Activex)Next Topic (Problems with U2lcom.dll) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder