removing particular control from form - Programmers Heaven

Howdy, Stranger!

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

Categories

removing particular control from form

sresarsinsresarsin Posts: 1Member
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

  • aamirwaziraamirwazir Posts: 108Member
    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.