Re: Refresh a TreeView
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Put a
TreeViewControlName.Nodes.Clear
at the opt of your code that populates the tree
--
Ron W
www.WorksRite.com
"aWs" <aWs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:51D28464-EF59-49EB-A0E9-A10108A3951A@xxxxxxxxxxxxxxxx
> I implemented a TreeView to my Bill Of Materials using the code sample in
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;209891 (How to
fill
> a treeview....)
>
> I have it attached to the Form_Load event.
>
> I created a button to refresh the tree because in the form a user can add
or
> change the BOM and then want to see it updated.
>
> How do I clear the TreeView object to rebuild it?
>
> I thought I could just call the Sub again, but it errors, stating
> duplicates. (I'm guessing because it is trying to rebuild without
clearing.)
>
.
Relevant Pages
- Re: Dire TreeView performance in .Net 2.0 vs 1.1
... BeginUpdate/EndUpdate route. ... Sadly it makes the tree unusable with it turned ... garbage TreeView control in .Net 2.0 should be summarily shot. ... secs (with BeginUpdate and updating .Text) ... (microsoft.public.dotnet.framework.windowsforms) - Re: Dire TreeView performance in .Net 2.0 vs 1.1
... the tree loads a few thousand nodes rather quickly for me. ... a percentage within its siblings or are the percentages ... TreeView control and the changes appear to be not for the better as far ... (microsoft.public.dotnet.framework.windowsforms) - Re: CheckForIllegalCrossThreadCalls
... I could not find the FileSystemItem class, but I did create a list of class ... I'll be able to assemble the tree without a problem. ... ..NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes ... not the TreeView control itself. ... (microsoft.public.dotnet.framework.windowsforms.controls) - Re: Deleting a node from TreeView
... to store the states, but I'm not sure its worth the effort. ... products on Windows 2000 and some Windows NT systems with 2000 libraries. ... This allows you to open the tree in any state you want it. ... > in a treeview control I'd be eternally grateful! ... (microsoft.public.access.formscoding) - TreeView
... Many thanks for making the A97 version of the treeview w/o activex ... Name of ID-NO Foreign index that field in relates to for tree ... I'd like to get expanding and collapsing working, ... I want to annotate the tblLevelsTEMP table with information such ... (comp.databases.ms-access) |
|