<?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 : Aligned top problem with picturebox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Aligned top problem with picturebox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:30:35 +0000</pubDate>
  <lastBuildDate>Sun, 30 Jan 2005 06:53:01 +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=1637</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[Aligned top problem with picturebox : Thanks for the feedback SuperMario. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4891&amp;title=aligned-top-problem-with-picturebox#4891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 30 January 2005 at 6:53am<br /><br /><P>Thanks for the feedback SuperMario.</P><P>I did end up implementing a solution like the one you proposed.</P><P>The question I was asking however was why does using the .align property of a picturebox give predictable results when used with a&nbsp;docking pane and not with the command bar?</P><P>Had it worked with neither control&nbsp;I would have just got on with it and manually coded the resize as you suggest.&nbsp;However&nbsp; because&nbsp;I was able to get it half working&nbsp;I was unsure if the fault lay with me or with the controls.</P>]]>
   </description>
   <pubDate>Sun, 30 Jan 2005 06:53:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4891&amp;title=aligned-top-problem-with-picturebox#4891</guid>
  </item> 
  <item>
   <title><![CDATA[Aligned top problem with picturebox :    The following code will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4670&amp;title=aligned-top-problem-with-picturebox#4670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 10 January 2005 at 10:03am<br /><br />The following code will fill the client area with a picturebox (I used 0-None for Align).<br><br>Private Sub CommandBars_Resize()<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim Left As Long<br>&nbsp;&nbsp;&nbsp; Dim Top As Long<br>&nbsp;&nbsp;&nbsp; Dim Right As Long<br>&nbsp;&nbsp;&nbsp; Dim Bottom As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CommandBars.GetClientRect Left, Top, Right, Bottom<br><br>&nbsp;&nbsp;&nbsp; Picture1.Move Left, Top, Right - Left, Bottom - Top<br><br>End Sub <br><br>Make sure you have:<br>&nbsp;&nbsp;&nbsp; DockingPaneManager.SetCommandBars Me.CommandBars<br><br>And that you "Send-To-Back" the docking pane control on the form.<br><br>I was able to do this with the code above.<br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Mon, 10 Jan 2005 10:03:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4670&amp;title=aligned-top-problem-with-picturebox#4670</guid>
  </item> 
  <item>
   <title><![CDATA[Aligned top problem with picturebox : Ack, you cant hide the title bar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4669&amp;title=aligned-top-problem-with-picturebox#4669</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 10 January 2005 at 9:45am<br /><br />Ack, you cant hide the title bar for just one pane. Its all or nothing :(]]>
   </description>
   <pubDate>Mon, 10 Jan 2005 09:45:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4669&amp;title=aligned-top-problem-with-picturebox#4669</guid>
  </item> 
  <item>
   <title><![CDATA[Aligned top problem with picturebox : Thank you for your suggestion....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4654&amp;title=aligned-top-problem-with-picturebox#4654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 09 January 2005 at 4:21am<br /><br /><P>Thank you for your suggestion. I will give it a try.</P><P>Too bad that the solution has to be (yet again) a work around in order to get the control to function properly.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 09 Jan 2005 04:21:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4654&amp;title=aligned-top-problem-with-picturebox#4654</guid>
  </item> 
  <item>
   <title><![CDATA[Aligned top problem with picturebox : I&amp;#039;m not certain of the exact...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4652&amp;title=aligned-top-problem-with-picturebox#4652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 07 January 2005 at 5:40pm<br /><br />I'm not certain of the exact solution to you problem, but I have an alternative.&nbsp; In a SDI app I wrote several months ago, I had a similar problem.&nbsp; I ended up using a Docking Pane to represent what would normally be the client area.&nbsp; I forget the exact flags and options, but the concept was to prevent the docking pane from being floated or hidden.&nbsp; I also hid the title bar for that pane.&nbsp; I think I also set HideClientArea to True.&nbsp; In the end, it looked just like the client area.]]>
   </description>
   <pubDate>Fri, 07 Jan 2005 17:40:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4652&amp;title=aligned-top-problem-with-picturebox#4652</guid>
  </item> 
  <item>
   <title><![CDATA[Aligned top problem with picturebox : I have a SDI project using thecommandbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4651&amp;title=aligned-top-problem-with-picturebox#4651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 07 January 2005 at 3:43pm<br /><br /><P>I have a SDI project using the&nbsp;commandbars and docking control. I have&nbsp;put a menu across the top and a docked pane on the right.</P><P>I put a picturebox in the main form and set its Aligned property to 1 - Align Top.</P><P>Neither the docking window or commandbar took any notice of it and when it aligned to the top it covered over the commandbars and the top grip area of the docked window.</P><P>I clicked on the picturebox and chose Send to Back and re-ran my app.</P><P>The docked window now docks nicely under the picturebox but the commandbar is still obscured.</P><P>Can anyone tell me how to make the commandbar aware of the picturebox so that it displays properly?</P><P>Thanks</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 07 Jan 2005 15:43:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1637&amp;PID=4651&amp;title=aligned-top-problem-with-picturebox#4651</guid>
  </item> 
 </channel>
</rss>