<?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 : [solved] TabControl - problem with closable Items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : [solved] TabControl - problem with closable Items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:05:42 +0000</pubDate>
  <lastBuildDate>Sun, 03 May 2015 06:46: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=18379</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[[solved] TabControl - problem with closable Items : Hi cmaxmedia,This strange solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=73369&amp;title=solved-tabcontrol-problem-with-closable-items#73369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 03 May 2015 at 6:46am<br /><br />Hi cmaxmedia,<br><br>This strange solution was because in first implementation of TabManager there was only one set of navigation buttons for all tabs (separately in tab header). Then navigate buttons were added for every tab, but  NavigateButtonClick event  stayed the same.<br> <br>I fixed it by adding reference to closed TabControlItem in NavigateButtonClick event. Fix will be available from next beta or final release.&nbsp;]]>
   </description>
   <pubDate>Sun, 03 May 2015 06:46:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=73369&amp;title=solved-tabcontrol-problem-with-closable-items#73369</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items : Hi, i have the same Problem: how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=73364&amp;title=solved-tabcontrol-problem-with-closable-items#73364</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 01 May 2015 at 6:48am<br /><br />Hi, i have the same Problem: how to detect the tab id/index that is being closed<br /><br /><br />Private Sub TabControl1_NavigateButtonClick(ByVal Id As Long, Cancel As Variant)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;MsgBox TabControl1.Selected.Index '&lt;- Nup, thats the active, not the closing tab index!!<br /><br />End Sub]]>
   </description>
   <pubDate>Fri, 01 May 2015 06:48:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=73364&amp;title=solved-tabcontrol-problem-with-closable-items#73364</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items :   Hello,here the same problem.How...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=66508&amp;title=solved-tabcontrol-problem-with-closable-items#66508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6231">sined</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 06 October 2011 at 8:45am<br /><br />Hello,<div>here the same problem.</div><div>How to detect the tab that is closing?</div><div>&nbsp;</div><div>Mirko</div>]]>
   </description>
   <pubDate>Thu, 06 Oct 2011 08:45:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=66508&amp;title=solved-tabcontrol-problem-with-closable-items#66508</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items : and also when u close an item...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64649&amp;title=solved-tabcontrol-problem-with-closable-items#64649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 30 May 2011 at 1:36am<br /><br />and also when u close an item using the closebutton... how do u get the actual itemcount of the tab?<br><br><div>Private Sub TabControl1_<span ="highlight">NavigateButtonClick</span>(ByVal Id As Long, Cancel As Variant)</div><div>&nbsp; &nbsp; MsgBox TabControl1.ItemCount<br></div>End Sub<br><br>this always return the actual itemcount (not deducting the tab that you closed).&nbsp; does anybody know how to get the itemcount inside navigatebuttonclick event?<br>]]>
   </description>
   <pubDate>Mon, 30 May 2011 01:36:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64649&amp;title=solved-tabcontrol-problem-with-closable-items#64649</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items : Thanks Oleg,actually i&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64433&amp;title=solved-tabcontrol-problem-with-closable-items#64433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6655">readypro</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 18 May 2011 at 3:01am<br /><br />Thanks Oleg,<div>actually i've set ShowCloseItemButton = xtpTabItemButtonSelected and i'm using&nbsp;SelectedItem to detect the clicked tab</div><div><br></div><div>Is it possible to retrieve also the clicked tab id&nbsp;using&nbsp;ShowCloseItemButton = xtpTabItemButtonAlways or another way to detect the tab that is being closed?</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 18 May 2011 03:01:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64433&amp;title=solved-tabcontrol-problem-with-closable-items#64433</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items : Its id of navigation button. not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64407&amp;title=solved-tabcontrol-problem-with-closable-items#64407</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 16 May 2011 at 12:46pm<br /><br />Its id of navigation button. not Id of tab.]]>
   </description>
   <pubDate>Mon, 16 May 2011 12:46:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64407&amp;title=solved-tabcontrol-problem-with-closable-items#64407</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] TabControl - problem with closable Items : IDE : VB 6.0Suite Control v.15.0.1TheNavigateButtonClick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64399&amp;title=solved-tabcontrol-problem-with-closable-items#64399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6655">readypro</a><br /><strong>Subject:</strong> 18379<br /><strong>Posted:</strong> 16 May 2011 at 9:20am<br /><br />IDE : VB 6.0<div>Suite Control v.15.0.1</div><div><br></div><div>The&nbsp;NavigateButtonClick event of the TabControl control seems to return always 2 as the ID of the tab being closed</div><div><br></div><div>Sample code (put 1 commandbutton and 1 tabcontrol on a form)</div><div><br></div><div><div>Private Sub Command1_Click()</div><div>&nbsp; &nbsp; Dim newTab As TabControlItem</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; TabControl1.ShowCloseItemButton = xtpTabItemButtonAlways</div><div>&nbsp; &nbsp; TabControl1.RemoveAll</div><div>&nbsp; &nbsp; Set newTab = TabControl1.InsertItem(0, "1st tab", 0, 0)</div><div>&nbsp; &nbsp; newTab.Closable = True</div><div>&nbsp; &nbsp; Set newTab = TabControl1.InsertItem(0, "2nd tab", 0, 0)</div><div>&nbsp; &nbsp; newTab.Closable = True</div><div>&nbsp; &nbsp; Set newTab = TabControl1.InsertItem(0, "3rd tab", 0, 0)</div><div>&nbsp; &nbsp; newTab.Closable = True</div><div>End Sub</div><div><br></div><div>Private Sub TabControl1_NavigateButtonClick(ByVal Id As Long, Cancel As Variant)</div></div><div><div><div>&nbsp; &nbsp; MsgBox "Closing tab " &amp; Id ' this displays always "2"</div><div>&nbsp; &nbsp; Cancel = True</div><div>End Sub</div><div><br></div></div></div><div>On the manual i've read</div><div><i>Id : Id of the tab navigation button that was clicked.</i></div><div><br></div><div>It's a bug or it's normal?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><div><!--DX end --><!--DX start ="TaggedComment" source="Item" id="##EXAMPLEINTRO" at="<h4 =dxh4>$$Example$$</h4><p>%%comment%%</p>" --><!--DX end --><!--DXMETADATA start type="FilteredItemList" scrap="INLINE_EXAMPLE" namespace="Example" source="Item" filter="type=inline" NoHeader="True" NoFooter="True" format="%%taggedcomment:source=item,id=##EXAMPLEINTRO,blankformat=<h4 =dxh4>$$Example$$</h4>,format= %%%%filtereditemlist%%" --><!--DX end --><!--DXMETADATA start type="FilteredItemList" scrap="MENU_LINK" namespace="seealso" source="Item" filter="" NoHeader="True" NoFooter="True" format="<h4 =dxh4>$$See_Also$$</h4><p id=dxseealso>%%filtereditemlist%%</p>" --></div></div>]]>
   </description>
   <pubDate>Mon, 16 May 2011 09:20:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18379&amp;PID=64399&amp;title=solved-tabcontrol-problem-with-closable-items#64399</guid>
  </item> 
 </channel>
</rss>