<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How to set focus on control within tabcontrol when tab changes?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How to set focus on control within tabcontrol when tab changes?' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 17:09:41 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 17:09:41 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/285224/how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/</link>
      <description>I have a tabcontrol with three tabs.&lt;br /&gt;
&lt;br /&gt;
First tab has several controls.&lt;br /&gt;
Second tab has only one control.&lt;br /&gt;
And the last tab has several controls.&lt;br /&gt;
&lt;br /&gt;
How do I set the focus to a control within a tab when the tab page changes?&lt;br /&gt;
&lt;br /&gt;
Code such as the following did not work for me.&lt;br /&gt;
&lt;br /&gt;
If Me.TabControl1.SelectedIndex = myTabPageTreatment Then&lt;br /&gt;
   txbVisitTreatment.Focus()&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
Thanks for all help!!!&lt;br /&gt;
vbn&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/285224/how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/</guid>
      <pubDate>Tue, 14 Dec 2004 13:20:29 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/285410/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#285410</link>
      <description>i dont know if this is what u want..but ill try my luck nway.. :)&lt;br /&gt;
basically..it's quite easy to set focus on any control...&lt;br /&gt;
u just open up the properties window for that particular contol...look for an option of TabIndex..then change the tab index...&lt;br /&gt;
set it to 0 for the control that u want to focus immediately as the tab loads and 1 for the next..2..3..and it goes on...&lt;br /&gt;
go to the next tab and do the same thing for the controls on it...&lt;br /&gt;
&lt;br /&gt;
hope it helps..&lt;br /&gt;
&lt;br /&gt;
-raina-&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/285410/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#285410</guid>
      <pubDate>Wed, 15 Dec 2004 18:23:26 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/285550/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#285550</link>
      <description>Thanks Raina&lt;br /&gt;
&lt;br /&gt;
As it turns out I know about this and already have the tab sequence set as desired.  I don't want to change the tab sequence (too many tabs with too many controls).  I could not manually manage that.  What I am looking for is:  say you have a tab control with three tabs and each tab has 15 controls, plus labels , etc.  When tab 1 is clicked, I want to be able to set the focus to a certain control within the tab.  Ditto for tab 2 and tab 3.&lt;br /&gt;
&lt;br /&gt;
I appreciate your being gracious and taking the time to help.  Many blessings to you.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Vbn&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/285550/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#285550</guid>
      <pubDate>Thu, 16 Dec 2004 15:03:22 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/393003/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#393003</link>
      <description>Hello,&lt;br /&gt;
You can do it like this.&lt;br /&gt;
TablecontrolName.SelectTab(TabPageName)&lt;br /&gt;
&lt;br /&gt;
this way you can programmatically change the table&lt;br /&gt;
E.g. you are clicking a button and changes the tab control.&lt;br /&gt;
Hope this works, as for me , it did!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/393003/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#393003</guid>
      <pubDate>Mon, 29 Jun 2009 07:11:44 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/418223/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#418223</link>
      <description>&lt;br /&gt;
Suppose If you have One TabControl(Tabcontrol1) and three Tab pages&lt;br /&gt;
(TabPage1,TabPage2,TabPage3).&lt;br /&gt;
&lt;br /&gt;
if you are in Tabpage1 and if you want to goto Tabpage3&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
TabControl1.SelectedTab = TabPage1&lt;br /&gt;
&lt;br /&gt;
txbVisitTreatment.Focus()   ' If u want to focus to any control&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/418223/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#418223</guid>
      <pubDate>Sat, 07 Aug 2010 22:40:58 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to set focus on control within tabcontrol when tab changes?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/425129/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#425129</link>
      <description>Hi,&lt;br /&gt;
The TabControl is a container control that allows you to display multiple tab on a single form and it allowed switching between the tabs....&lt;br /&gt;
for more information check this link...&lt;br /&gt;
&lt;a href="http://www.mindstick.com/Articles/0f9a1b51-f2e8-4343-ab35-4229f1f19b93/?TabControl%20in%20VB.Net"&gt;http://www.mindstick.com/Articles/0f9a1b51-f2e8-4343-ab35-4229f1f19b93/?TabControl%20in%20VB.Net&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
thanks !!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/425129/re-how-to-set-focus-on-control-within-tabcontrol-when-tab-changes/#425129</guid>
      <pubDate>Fri, 07 Oct 2011 04:33:31 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/425130/this-post-has-been-deleted/#425130</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/425130/this-post-has-been-deleted/#425130</guid>
      <pubDate>Fri, 07 Oct 2011 04:36:25 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/425132/this-post-has-been-deleted/#425132</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/425132/this-post-has-been-deleted/#425132</guid>
      <pubDate>Fri, 07 Oct 2011 04:39:56 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/VBNET/285224/425134/this-post-has-been-deleted/#425134</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/285224/425134/this-post-has-been-deleted/#425134</guid>
      <pubDate>Fri, 07 Oct 2011 04:45:17 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>