<?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 : Determine Tab Containing a Control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Determine Tab Containing a Control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:29:58 +0000</pubDate>
  <lastBuildDate>Wed, 07 Oct 2009 06:48:51 +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=14927</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[Determine Tab Containing a Control : You have to walk all the parents/containers...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14927&amp;PID=53665&amp;title=determine-tab-containing-a-control#53665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5585">daniel_r</a><br /><strong>Subject:</strong> 14927<br /><strong>Posted:</strong> 07 October 2009 at 6:48am<br /><br />You have to walk all the parents/containers of that control until you find a TabControlPage.<br><br>I did the same just yesterday for VB6:<br><br><table width="99%"><tr><td><pre class="BBcode">Private Function GetTab(Control As Control) As TabControl<br><br>&nbsp; Dim c As Control<br>&nbsp; <br>&nbsp; Set c = Control.Container<br>&nbsp; Do While Not (c Is Nothing)<br>&nbsp;&nbsp;&nbsp; If TypeOf c Is TabControlPage Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set GetTab = c<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Function<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set c = c.Container<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp; Loop<br>&nbsp; <br>End Function<br></pre></td></tr></table><br>&nbsp;]]>
   </description>
   <pubDate>Wed, 07 Oct 2009 06:48:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14927&amp;PID=53665&amp;title=determine-tab-containing-a-control#53665</guid>
  </item> 
  <item>
   <title><![CDATA[Determine Tab Containing a Control : I have a spell checker routine...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14927&amp;PID=51710&amp;title=determine-tab-containing-a-control#51710</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5320">jgordon428</a><br /><strong>Subject:</strong> 14927<br /><strong>Posted:</strong> 07 August 2009 at 1:53pm<br /><br />I have a spell checker routine that will scan through all the textboxes in a form, and when it finds a misspelling, it will display the spelling correction dialogue. I have a form that uses the XtremeSuite TabControl. What I would like to do, is when I find a textbox with a misspelled word, to set the current tab to the control's tab, so the user can see the tab page that contains the control in question. With previous tab controls I've used, there was a GetTab(hWnd as long) function, where you could pass it the handle to a control, and it would return the relevant tab number. I don't believe there is an equivalent function with these controls, so I was hoping for a bit of help.<br><br>Is it possible to add in this functionality? Is there a different way I could go about doing this, for instance iterating through a collection of controls within each tab or tabControlPage? I would prefer not to use a hack like storing the tab index in each textbox tag property if at all possible.<br><br>Thank you.<br>]]>
   </description>
   <pubDate>Fri, 07 Aug 2009 13:53:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14927&amp;PID=51710&amp;title=determine-tab-containing-a-control#51710</guid>
  </item> 
 </channel>
</rss>