<?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 : Command Bars Resize</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Command Bars Resize]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:44:15 +0000</pubDate>
  <lastBuildDate>Sat, 03 Sep 2011 18:01:43 +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=18869</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[Command Bars Resize : Use as Long instead of As Integer  the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18869&amp;PID=66149&amp;title=command-bars-resize#66149</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 18869<br /><strong>Posted:</strong> 03 September 2011 at 6:01pm<br /><br />Use as Long instead of As Integer<DIV>&nbsp;</DIV><DIV>the guide cite</DIV><DIV><PRE lang=VB =syntax><strong>Public Sub GetClientRect</strong>( _&nbsp;&nbsp;&nbsp;<strong>ByRef </strong><I><a href="mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v15.0.2%5CHelp%5CSymbolReference.chm::/XtremeCommandBars~CommandBars~GetClientRect.html#" target="_blank"><U><FONT color=#0066cc face="Courier New">Left</FONT></U></A></I></strong> <strong>As</strong> <B>Long</B>, _&nbsp;&nbsp;&nbsp;<strong>ByRef </strong><I><a href="mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v15.0.2%5CHelp%5CSymbolReference.chm::/XtremeCommandBars~CommandBars~GetClientRect.html#" target="_blank"><U><FONT color=#0066cc face="Courier New">Top</FONT></U></A></I></strong> <strong>As</strong> <B>Long</B>, _&nbsp;&nbsp;&nbsp;<strong>ByRef </strong><I><a href="mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v15.0.2%5CHelp%5CSymbolReference.chm::/XtremeCommandBars~CommandBars~GetClientRect.html#" target="_blank"><U><FONT color=#0066cc face="Courier New">Right</FONT></U></A></I></strong> <strong>As</strong> <B>Long</B>, _&nbsp;&nbsp;&nbsp;<strong>ByRef </strong><I><a href="mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v15.0.2%5CHelp%5CSymbolReference.chm::/XtremeCommandBars~CommandBars~GetClientRect.html#" target="_blank"><U><FONT color=#0066cc face="Courier New">Bottom</FONT></U></A></I></strong> <strong>As</strong> <B>Long</B> _)<strong> </strong></PRE></DIV>]]>
   </description>
   <pubDate>Sat, 03 Sep 2011 18:01:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18869&amp;PID=66149&amp;title=command-bars-resize#66149</guid>
  </item> 
  <item>
   <title><![CDATA[Command Bars Resize :   I have the below code in the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18869&amp;PID=66064&amp;title=command-bars-resize#66064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4182">rplp4</a><br /><strong>Subject:</strong> 18869<br /><strong>Posted:</strong> 26 August 2011 at 4:05pm<br /><br /><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas></P><DIV>I have the below code in the resize event.&nbsp; I get an exception the first time resize is fired.&nbsp; What can I do to fix this?<FONT size=1 face=C&#111;nsolas><FONT size=1 face=C&#111;nsolas><P>Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. </P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P>Dim</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT color=#000000 size=2 face=C&#111;nsolas> left </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>As</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT color=#000000 size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Integer</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Dim</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> top </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>As</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Integer</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Dim</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> right </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>As</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Integer</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Dim</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> bottom </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>As</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Integer</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Try</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>CommandBars1.GetClientRect(left, top, right, bottom)</P><P>grpMain.SetBounds(left, top, right - left - 10, bottom - top - 10)</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Catch</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> ex </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>As</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Exception</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Console</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.WriteLine(ex.Message)</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>End</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>Try</P></FONT></FONT></FONT></DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 26 Aug 2011 16:05:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18869&amp;PID=66064&amp;title=command-bars-resize#66064</guid>
  </item> 
 </channel>
</rss>