<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic &amp;amp;quot;Buddy&amp;amp;quot; property inToolbarControl or TOCControl. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/amp-quot-buddy-amp-quot-property-intoolbarcontrol/m-p/196257#M5118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, my friends,I am new to the ArcEngine,but counld you launch me what's done when the Buddy property of ToolbarControl is set to a MapControl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; private void Form1_Load(object sender, EventArgs e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.SetBuddyControl(map_main);//Set the MapControl as the Buddy control of ToolBar.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.SetBuddyControl(map_main);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The toolbar is not active when I add the two sentence codes when the form loads.But when I manual set the Buddy property of the&amp;nbsp; ToolBar,you know that,when the ToolBar is activate when running the App. Or this two actions do not do the same work? I always think that they do the same work,is'n it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 09:16:10 GMT</pubDate>
    <dc:creator>JcsonJcson</dc:creator>
    <dc:date>2013-10-01T09:16:10Z</dc:date>
    <item>
      <title>&amp;quot;Buddy&amp;quot; property inToolbarControl or TOCControl.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/amp-quot-buddy-amp-quot-property-intoolbarcontrol/m-p/196257#M5118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, my friends,I am new to the ArcEngine,but counld you launch me what's done when the Buddy property of ToolbarControl is set to a MapControl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; private void Form1_Load(object sender, EventArgs e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.SetBuddyControl(map_main);//Set the MapControl as the Buddy control of ToolBar.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.SetBuddyControl(map_main);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The toolbar is not active when I add the two sentence codes when the form loads.But when I manual set the Buddy property of the&amp;nbsp; ToolBar,you know that,when the ToolBar is activate when running the App. Or this two actions do not do the same work? I always think that they do the same work,is'n it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/amp-quot-buddy-amp-quot-property-intoolbarcontrol/m-p/196257#M5118</guid>
      <dc:creator>JcsonJcson</dc:creator>
      <dc:date>2013-10-01T09:16:10Z</dc:date>
    </item>
  </channel>
</rss>

