<?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 : TaskPanel with ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : TaskPanel with ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 06:59:05 +0000</pubDate>
  <lastBuildDate>Sun, 09 May 2010 09:55:28 +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=14363</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[TaskPanel with ReportControl : I have since resolved this issue....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=58384&amp;title=taskpanel-with-reportcontrol#58384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 14363<br /><strong>Posted:</strong> 09 May 2010 at 9:55am<br /><br />I have since resolved this issue. I was using the SetSize and SetMargins incorrectly the first time I looked at this, after going away for a few minutes I realised how to resolve it... typical!!!<br><br>Code:<br><br><font color="#000099">Private Sub </font>CreateToolbox()<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Group <font color="#000099">As </font>TaskPanelGroup<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Item <font color="#000099">As </font>TaskPanelGroupItem<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Group = TaskPanel.Groups.Add(1, "Group By")<br>&nbsp;&nbsp;&nbsp; Group.Expanded = <font color="#000099">True</font><br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item = Group.Items.Add(1, "Test 1", xtpTaskItemTypeControl, 1)<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item.Control = Picture1<br>&nbsp;&nbsp;&nbsp; Item.SetSize 0, 0, <font color="#000099">True</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Item.SetMargins -8, -5, -8, -5&nbsp;&nbsp; <br><font color="#000099">End Sub</font><br><br><font color="#000099">Private Sub</font> Form_Resize()<br>&nbsp;&nbsp;&nbsp; <font color="#006600">' Resize the TaskPanel on Form Resize</font><br>&nbsp;&nbsp;&nbsp; TaskPanel.Move TaskPanel.left, TaskPanel.top, TaskPanel.Width, Me.ScaleHeight - TaskPanel.top - 120<br><br>&nbsp;&nbsp;&nbsp; <font color="#006600">' Resize the rpcGroupBy ReportControl inside the PictureBox, the PictureBox gets resized automatically by the TaskPanel</font><br>&nbsp;&nbsp;&nbsp; rpcGroupBy.Move 0, 0, picGroupBy.Width, picGroupBy.Height - 15<br><font color="#000099">End Sub</font><br><br>Result:<br><br><img src="uploads/20100509_095226_Screenshot.png" height="466" width="225" border="0"><br><br>]]>
   </description>
   <pubDate>Sun, 09 May 2010 09:55:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=58384&amp;title=taskpanel-with-reportcontrol#58384</guid>
  </item> 
  <item>
   <title><![CDATA[TaskPanel with ReportControl : Hi Andy,I know how to get the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=58382&amp;title=taskpanel-with-reportcontrol#58382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 14363<br /><strong>Posted:</strong> 09 May 2010 at 8:47am<br /><br />Hi Andy,<br><br>I know how to get the ReportControl into the TaskPanel without it moving back outside of the TaskPanel when clicked.<br><br>Add a PictureBox control and then place your ReportControl inside of this PictureBox. Next use the following code to attach this all to the TaskPanelGroup you wish.<br><br>Code:<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Group <font color="#000099">As </font>TaskPanelGroup<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Item <font color="#000099">As </font>TaskPanelGroupItem<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Group = TaskPanel.Groups.Add(1, "Group By")<br>&nbsp;&nbsp;&nbsp; Group.Expanded = <font color="#000099">True</font><br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item = Group.Items.Add(1, "Test 1", xtpTaskItemTypeControl, 1)<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item.Control = Picture1<br>&nbsp;&nbsp;&nbsp; Item.SetSize 0, 0, <font color="#000099">True</font><br>&nbsp;&nbsp;&nbsp; DoEvents<br><br>&nbsp;&nbsp;&nbsp; ReportControl.Move 0, 0, Picture1.Width, Picture1.Height<br><br>My only issue now is to try and get the PictureBox to fit the TaskPanelGroupItem exactly! I have left the PictureBox border as black so you can see how this looks.<br><br>&nbsp;&nbsp; <img src="uploads/20100509_084246_Screenshot.bmp" height="466" width="225" border="0"><br><br>I have tried using Item.SetMargins which allows me to set the left &amp; top position but I can't find how to get the height and width of the TaskPanelGroupItem. As you can see from above I have used Item.SetSize however this appears to autofit the control but with margins... <br><br>Does anyone know how to resolve this?<br>]]>
   </description>
   <pubDate>Sun, 09 May 2010 08:47:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=58382&amp;title=taskpanel-with-reportcontrol#58382</guid>
  </item> 
  <item>
   <title><![CDATA[TaskPanel with ReportControl : Hi,   Please, have a look at...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=49276&amp;title=taskpanel-with-reportcontrol#49276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14363<br /><strong>Posted:</strong> 22 May 2009 at 10:04am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Please, have a look at this post: <a href="https://forum.codejock.com/forum_posts.asp?TID=13460" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=13460</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 22 May 2009 10:04:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=49276&amp;title=taskpanel-with-reportcontrol#49276</guid>
  </item> 
  <item>
   <title><![CDATA[TaskPanel with ReportControl : Hi All,  I&amp;#039;m trying to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=49258&amp;title=taskpanel-with-reportcontrol#49258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4223">AndyWilton</a><br /><strong>Subject:</strong> 14363<br /><strong>Posted:</strong> 21 May 2009 at 3:52pm<br /><br />Hi All,<DIV>&nbsp;</DIV><DIV>I'm trying to add a ReportControl to an Item within a TaskPanel.</DIV><DIV>&nbsp;</DIV><DIV>I'm using the SetHandle method and all works fine when the window opens.&nbsp; You can expand and contract the group etc all fine, but as soon as you click on the ReportControl it moves to a location outside of the TaskPanel.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Andy</DIV>]]>
   </description>
   <pubDate>Thu, 21 May 2009 15:52:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14363&amp;PID=49258&amp;title=taskpanel-with-reportcontrol#49258</guid>
  </item> 
 </channel>
</rss>