VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
removing particular control from form Posted by sresarsin on 4 Jan 2006 at 1:46 AM
if i took several controls on form ie 3textboxes,7buttons,2 labels and etc. i done the program for counting the total controls,individual controls that means how many textboxes and etc.but my problem is now i want to remove a particular control means i want to 2 textbox how is possible please tell me the logic or code

Report
Re: removing particular control from form Posted by aamirwazir on 4 Jan 2006 at 9:52 AM
if u want the user tht he does not see the textbox then use

Textbox1.Visible=false

if u want ur control to be out of memory then i think


Textbox1.Dispose()

but i recomend u the first one....



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.