Preserving Focus on a Control in a TabControl in VB.NET




Hello,

I have a VB.NET Form which has a System.Windows.Forms.TabControl on it.
This TabControl has 5 Tabs on it. On each tab, I have various
textboxes, option boxes, radio boxes, etc. I would like to have the
ability to save the focus on a particular control, so that when I go to
another tab, then back to the same tab, the control I left will still
be the highlighted control. For example, if I'm on the "City" Textbox
on the "Customer" Tab, then go to the "Orders" Tab, then back to the
"Customer" Tab...I would like the "City" Textbox to have the cursor on
it. I need to do this without affecting the "TabOrder" of the
TabControl. I've looked into "Focus", "Select", "ActiveControl",
etc...but nothing seems to work.

Any ideas?

Thanks.

.



Relevant Pages

  • Re: Get name of control at a certain mousedown point
    ... to wire all the controls click events up to a handler in the tab page or tab ... >I have several labels and textboxes that are drawn to a tab page based on ... > is a tab control ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Can you disable a control on a form.....?
    ... Set the tab stop property to no and the tab will go past those locked ... textboxes. ... possible to set the properties so that the control can't have the focus, ... Its Hard to read grey text on grey background when you disable a ...
    (microsoft.public.access.forms)
  • Re: Defining Active Tab
    ... following fruit: ... will clear only the active tab's textboxes. ... If active tab = tab1 ...
    (microsoft.public.vb.controls)
  • Strange TAB behavior
    ... I have created a multipage tabbed form for data entry. ... multipage of the form, the TAB behavior changes. ... (moving through the textboxes in taborder.) [I've ... got a second button located directly on the sheet that will reopen the ...
    (microsoft.public.excel.programming)
  • Re: Tab order
    ... I assume that those textboxes are empty if the ID doesn't ... >>> exists, the customer information is populated, and I'd like to skip to ... but the next tab tabs back to the customer fields. ...
    (microsoft.public.access.formscoding)