<?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 : Tabcontrol Tabindex</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Tabcontrol Tabindex]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:00:04 +0000</pubDate>
  <lastBuildDate>Thu, 31 Jul 2008 11:12:35 +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=11673</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[Tabcontrol Tabindex : Don&amp;#039;t set the focus to controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11673&amp;PID=39264&amp;title=tabcontrol-tabindex#39264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11673<br /><strong>Posted:</strong> 31 July 2008 at 11:12am<br /><br />Don't set the focus to controls that aren't visible, so:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>With Me.ControlName<br>&nbsp;&nbsp; If .Visible Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetFocus<br>&nbsp;&nbsp; End If<br>End With<br></pre></td></tr></table><br><br>If I misunderstood, then maybe you have a sample project that is causing the error that I could look at?<br>]]>
   </description>
   <pubDate>Thu, 31 Jul 2008 11:12:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11673&amp;PID=39264&amp;title=tabcontrol-tabindex#39264</guid>
  </item> 
  <item>
   <title><![CDATA[Tabcontrol Tabindex : Hi  The controls on tabs that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11673&amp;PID=39236&amp;title=tabcontrol-tabindex#39236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 11673<br /><strong>Posted:</strong> 31 July 2008 at 4:58am<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">Hi<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">The controls on tabs that are NOT selected do not appear on the tab index.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>What I would like to do is, if a user is tabbing between controls and the next control is in a hidden tab on the tabcontrol then the gotfocus on the control will set the correct Tab selected index.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Does that make sense?</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>If I manually set the focus of a control </FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>txtText1.setfocus t</FONT><FONT face="Times New Roman" size=3>hat is on a NON visible tab I get an error.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Only if that control is visible on the tab does it work.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>If I look at the .visable property I see that a NON visible tab the controls are set to .visible = false, which explains the error.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>So how do I getting the tab order to display the correct Tab?</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Thanks for your help.</FONT></P><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>MArk</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 31 Jul 2008 04:58:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11673&amp;PID=39236&amp;title=tabcontrol-tabindex#39236</guid>
  </item> 
 </channel>
</rss>