Results 1 to 2 of 2

Thread: [RESOLVED] Clear Contents of a panel?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Resolved [RESOLVED] Clear Contents of a panel?

    I am doing a school project and have created a small program that allows the user to create a binary search tree and then visually displays it on the screen as a familiar tree structure, the program is a teaching aid to help students understand how the addition, deletion of nodes in the tree works along with many other things such as different tree traversals.
    I currently using a large panel on the main form and then adding user controls containing a textbox that displays imputed values,then using the panels paint event I draw a line between the user controls, this works fine however for deletion of a node I need to clear the main panel of the nodes that will change and add them to the panel again or just clear the hole panel and redraw the whole tree, does anyone know if this is possible and if so how or has any advice on how I could implement this differently?
    Thanks

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Re: [RESOLVED] Clear Contents of a panel?

    I worked this out literally 2 minutes after posting sorry,if your wondering how its done it was as simple as:
    panel.controls.clear()

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width