<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Treeview slow when refreshing its contents</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Treeview slow when refreshing its contents]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:47:25 +0000</pubDate>
  <lastBuildDate>Wed, 06 Jan 2010 12:40:03 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15862</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents : I&amp;#039;m still waiting for 13.2.2...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=56015&amp;title=treeview-slow-when-refreshing-its-contents#56015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 06 January 2010 at 12:40pm<br /><br />I'm still waiting for 13.2.2 now because i have actually no issues ;)]]>
   </description>
   <pubDate>Wed, 06 Jan 2010 12:40:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=56015&amp;title=treeview-slow-when-refreshing-its-contents#56015</guid>
  </item> 
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents : do you have last version, it was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55983&amp;title=treeview-slow-when-refreshing-its-contents#55983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 05 January 2010 at 8:22am<br /><br />do you have last version, it was minor problem with Clear method but it have to be fixed in 13.2.x]]>
   </description>
   <pubDate>Tue, 05 Jan 2010 08:22:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55983&amp;title=treeview-slow-when-refreshing-its-contents#55983</guid>
  </item> 
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents : I got the same error including...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55963&amp;title=treeview-slow-when-refreshing-its-contents#55963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 04 January 2010 at 4:39am<br /><br />I got the same error including crash of the application if i often use the clear-method.<DIV>It's faster and also save to remove the nodes, but from last node to first node !</DIV><DIV>Also use in this case the WM_SETREDRAW.</DIV>]]>
   </description>
   <pubDate>Mon, 04 Jan 2010 04:39:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55963&amp;title=treeview-slow-when-refreshing-its-contents#55963</guid>
  </item> 
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents :   Thank you for the solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55684&amp;title=treeview-slow-when-refreshing-its-contents#55684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5762">od@eureka</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 16 December 2009 at 8:11am<br /><br /><DIV><img src="http://forum.codejock.com/smileys/smiley20.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV><SPAN id=result_ =medium_text><SPAN style=": #ebeff9" title="Merci pour la soluti&#111;n, ça résoud bien le temps de rép&#111;nse ..." closure_hashCode_f38cf="29"><FONT size=2>Thank you for the solution that solves well the response time ...<BR></FONT></SPAN></SPAN></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><SPAN style=": #ebeff9" title="Mais malheureusement, après plusieurs appels de &quot;myTreeView.Nodes.Clear&quot;, j'ai un code d'erreur 80010108 ..." closure_hashCode_f38cf="30"><FONT size=2>But unfortunately, after several calls of myTreeView.Nodes.Clear(), I have an error code 80010108 ...</FONT></SPAN></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>&nbsp;--&gt; Is there another way to empty the&nbsp;<FONT style=": #ebeff9">entire&nbsp;</FONT>TreeView?</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 16 Dec 2009 08:11:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55684&amp;title=treeview-slow-when-refreshing-its-contents#55684</guid>
  </item> 
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents : Hi,  You can try WM_SETREDRAW...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55679&amp;title=treeview-slow-when-refreshing-its-contents#55679</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 16 December 2009 at 5:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can try WM_SETREDRAW API message:</DIV><DIV>&nbsp;</DIV><DIV>Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<BR>Const WM_SETREDRAW = &amp;HB</DIV><DIV><BR>Private Sub Command1_Click()<BR>SendMessage myTreeView.hwnd, WM_SETREDRAW, 0, 0</DIV><DIV>myTreeView.Nodes.Clear<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 1000<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myTreeView.Nodes.Add Parent, xtpTreeViewChild, i, "line " &amp; CStr(i), 3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>SendMessage myTreeView.hwnd, WM_SETREDRAW, 1, 0<BR>End Sub</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 16 Dec 2009 05:46:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55679&amp;title=treeview-slow-when-refreshing-its-contents#55679</guid>
  </item> 
  <item>
   <title><![CDATA[Treeview slow when refreshing its contents : I have to refresh the contents...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55655&amp;title=treeview-slow-when-refreshing-its-contents#55655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5762">od@eureka</a><br /><strong>Subject:</strong> 15862<br /><strong>Posted:</strong> 15 December 2009 at 10:58am<br /><br />I have to refresh the contents of a Treeview :<DIV>- by default, it show all values (approximativly 1500 nodes)</DIV><DIV>- when using filters, users can reduce the number of nodes to a subset of&nbsp;150 or less</DIV><DIV>&nbsp;</DIV><DIV>I do a small test:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myTreeView.Nodes.Clear<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myTreeView.Nodes.Add Parent, xtpTreeViewChild, i, "line " &amp; CStr(i), 3&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next</DIV><DIV>&nbsp;</DIV><DIV>--&gt; it is very slowly the 2nd or more times...(&gt; 4 sec !!!) &nbsp;How to do to go faster ? (the first time, for 1500 nodes, it takes only 1 sec )</DIV>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 10:58:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15862&amp;PID=55655&amp;title=treeview-slow-when-refreshing-its-contents#55655</guid>
  </item> 
 </channel>
</rss>