<?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 : How to get the block&#039;s length in TrackControl?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to get the block&#039;s length in TrackControl?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 14:11:00 +0000</pubDate>
  <lastBuildDate>Thu, 03 May 2012 09:49:42 +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=19003</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[How to get the block&#039;s length in TrackControl? : Hi,I know this has been a while...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=68168&amp;title=how-to-get-the-blocks-length-in-trackcontrol#68168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 03 May 2012 at 9:49am<br /><br />Hi,<br><br>I know this has been a while but I have found a way to interact with the Blocks after they're created.<br><br>In VB I created a global variable as "Dim Block() As TrackBlock"<br><br>Then as I added each block initially I added them to this variable incrementing the Object array each time, therefore once created you have access to the blocks lengths at anytime and you can iterate through the entire block collection.<br><br>I have only found this out as I am trying to do something similar for the following post: <a href="http://forum.codejock.com/forum_posts.asp?TID=19708&amp;title=trackc&#111;ntrol-using-markup" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=19708&amp;title=trackcontrol-using-markup</a><br>]]>
   </description>
   <pubDate>Thu, 03 May 2012 09:49:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=68168&amp;title=how-to-get-the-blocks-length-in-trackcontrol#68168</guid>
  </item> 
  <item>
   <title><![CDATA[How to get the block&#039;s length in TrackControl? : Hi,I tried this before, but this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66611&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7087">hellokenny</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 18 October 2011 at 2:28am<br /><br />Hi,<br><br>I tried this before, but this is not I want. Thanks.<br>]]>
   </description>
   <pubDate>Tue, 18 Oct 2011 02:28:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66611&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66611</guid>
  </item> 
  <item>
   <title><![CDATA[How to get the block&#039;s length in TrackControl? : Hi,It looks like there&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66591&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 13 October 2011 at 3:45am<br /><br />Hi,<br><br>It looks like there's no way to iterate through each Block within the TrackControl, the only thing I could find was "For Each Block In TrackControl.SelectedBlocks", but this is only useful if you select the blocks first.<br><br>It looks like if you require this you'll need to put in a request for this functionality.<br>]]>
   </description>
   <pubDate>Thu, 13 Oct 2011 03:45:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66591&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66591</guid>
  </item> 
  <item>
   <title><![CDATA[How to get the block&#039;s length in TrackControl? : Hi, Xander,Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66581&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7087">hellokenny</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 11 October 2011 at 11:51pm<br /><br />Hi, Xander,<br><br>Thank you for your answer. <br><br>But I want to get all block's length in the TrackControl, this way is not suitable for me<br><br>Anyway, thank you very much.<br><br>]]>
   </description>
   <pubDate>Tue, 11 Oct 2011 23:51:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66581&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66581</guid>
  </item> 
  <item>
   <title><![CDATA[How to get the block&#039;s length in TrackControl? :  Hi,Below is some VB code that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66500&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 05 October 2011 at 9:27am<br /><br />Hi,<br><br>Below is some VB code that can be used to get the length of the block, hopefully you can port this to C#.<br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub TrackControl_MouseUp(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Select Case TrackControl.HitTest(x, y).ht<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Case xtpHitTestBlock<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Debug.Print TrackControl.HitTest(x, y).Block.Length<br>&nbsp;&nbsp;&nbsp; End Select<br><br>End Sub<br></pre></td></tr></table><br><br>Hope this helps.<br>]]>
   </description>
   <pubDate>Wed, 05 Oct 2011 09:27:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66500&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66500</guid>
  </item> 
  <item>
   <title><![CDATA[How to get the block&#039;s length in TrackControl? : Hi, all,I&amp;#039;m using the C#...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66469&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7087">hellokenny</a><br /><strong>Subject:</strong> 19003<br /><strong>Posted:</strong> 30 September 2011 at 12:03am<br /><br />Hi, all,<br><br>I'm using the C# sample code for TrackControl,<br><br>I want to get the block's length, my code is<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XtremeReportControl.ReportRecord R = wndTrackControl.Records&#091;2&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XtremeReportControl.TrackControlItem T = (XtremeReportControl.TrackControlItem)R&#091;3&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(T.BlockCount.ToString());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(T.Block&#091;0&#093;.Length.ToString());<br><br>T.BlockCount is 5, it's OK. But the T.Block&#091;0&#093;.Length shows error.<br><br>Could anyone help me? <br><br>Thanks!<br>]]>
   </description>
   <pubDate>Fri, 30 Sep 2011 00:03:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19003&amp;PID=66469&amp;title=how-to-get-the-blocks-length-in-trackcontrol#66469</guid>
  </item> 
 </channel>
</rss>