Re: TabControl page order

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 02/09/04


Date: Mon, 9 Feb 2004 17:05:42 -0500

Here's a snip from one of my old projects...

<snip>
   InitializeComponent();

   // reorder the tabs since it's a CF bug
   formTabs.Controls.SetChildIndex(this.mapTab, 1);
   formTabs.Controls.SetChildIndex(this.findTab, 1);
   formTabs.Controls.SetChildIndex(this.dataTab, 1);
   formTabs.Controls.SetChildIndex(this.cacheTab, 1);
</snip>

-- 
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
"Bob Trabucco" <bobt@ccc-soft.com> wrote in message
news:%23hBI8S17DHA.3380@tk2msftngp13.phx.gbl...
> Chris,
>
> Thanks for the response...
>
> I tried setting it like this...
>
> TabControl1.Controls.SetChildIndex(tab1, 0)
> TabControl1.Controls.SetChildIndex(tab2, 1)
>
> etc...
> No success.
>
> I do seem to have all available updates to the framework and Visual Studio
> 2003.  Any others I should know about??
>
> Thanks!
> Bob
>
>
> "Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message
> news:OOD29L17DHA.2576@TK2MSFTNGP11.phx.gbl...
> > I had this same problem in early versions.  My workaround was to reset
the
> > order *after* InitializeComponent.  I think this was fixed in one of the
> > SPs.
> >
> > -- 
> > Chris Tacke, eMVP
> > Co-Founder and Advisory Board Member
> > www.OpenNETCF.org
> > ---
> > Windows CE Product Manager
> > Applied Data Systems
> > www.applieddata.net
> >
> >
> > "Bob Trabucco" <bobt@ccc-soft.com> wrote in message
> > news:OFI9y907DHA.1948@TK2MSFTNGP12.phx.gbl...
> > > Hello all,
> > >
> > > I am fighting a very aggravating problem in my VB.NET compact
framework
> > app.
> > >
> > > I have a tab control on a form.  I set up the pages and put them in
the
> > > order I like.  It all works great.
> > >
> > > Then for some reason at random times Visual Studio decides to scramble
> the
> > > order!  For the life of me I can't figure out a pattern.  It is
driving
> me
> > > bonkers!  It all works fine - the tabs are just in a random order.  I
> have
> > > no code anywhere that should change the order.  I even tried going
into
> > the
> > > InitializeComponent routine and setting the order there but Visual
> Studio
> > > just comes along and wipes it out.
> > >
> > > Any suggestions??? Is there something I can put in a Page Load so I
can
> > set
> > > the order then??
> > >
> > > Thanks in advance,
> > >
> > > Bob
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: RAPI in C
    ... I think you'll have to download and install one of the SDKs. ... Windows CE Product Manager ... >> Chris Tacke, eMVP ... >> Windows CE Product Manager ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: System Tray Icon
    ... Chris Tacke, eMVP ... Windows CE Product Manager ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Launching Apps via ActiveSync
    ... "Chris Tacke, eMVP" wrote in message ... > Windows CE Product Manager ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Pocket outlook - AppointmentsCollection class: ListChanged eve
    ... Visual Developer - Device Application Development MVP ... Chris Tacke, Embedded MVP ... Windows Messages. ... could put this code in a windows app but write you're own message pump ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: video
    ... >> Chris Tacke, eMVP ... >> Windows CE Product Manager ... >> Applied Data Systems ...
    (microsoft.public.dotnet.framework.compactframework)