removing particular control from form

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

Comments

  • 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....
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion