Re: TabControl page order

From: Bob Trabucco (bobt_at_ccc-soft.com)
Date: 02/10/04


Date: Tue, 10 Feb 2004 10:53:20 -0500

Thanks for the code Chris but that didn't seem to help.

This doesn't look like a Compact Framework bug. I'd bet on a Visual Studio
IDE bug. When I look at the generated code I can see that Visual Studio is
changing the order around in the code as well. I suppose we could call it a
bug in the SetChildIndex function that is not switching the tabs around to
the order we specify - but screwing the tabs up in the first place I can
probably blame the IDE...

I have all the latest updates so I am at a impasse. The only thing I can do
that works is to close down designer view for the form, open up the code
view. Find the place where the code adds the tabs. Put it in the correct
order. Then do my build. This works until I open design view again...

Thanks again - and if anyone else has a suggestion I'd love to hear it...

Bob

"Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message
news:OcAQdj17DHA.3880@tk2msftngp13.phx.gbl...
> 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

  • Bug in VB.NET compiler
    ... I think I've found a bug in the VB.NET Compiler. ... I'm using Visual Studio 2003 with .NET ... Framework 1.1. ... the AssemblyVersion Attribute should generate ...
    (microsoft.public.vsnet.general)
  • Re: An Immodest Proposal; Or, the Perfect Subfile Program
    ... >on "optimistic locking" of data base records. ... Once we are serving multiple jobs, ... >the application design should be standardized in this kind of framework. ... Chris ...
    (comp.sys.ibm.as400.misc)
  • Re: IntelliNonsense - Find all references
    ... browser problem is too involved to include in a service pask. ... This bug is a deal breaker with us, ... So now we go back to Visual Studio 6.0 yet again. ... The public bug reporting website at ...
    (microsoft.public.vc.ide_general)
  • Re: What framework ???
    ... Framework 3.0, as it is basically the 2.0 Framework plus WPF, WCF, and WWF, ... If you're asking about the development machines, you can run Visual Studio ... Vista programs do not run by default with full permissions. ... sure that when move to window vista the transition will go smooth. ...
    (microsoft.public.dotnet.framework)
  • Re: Replace a framework class
    ... changing a class in the Framework in a way that will effect all ... there is a bug in the original IBM PC BIOS Int 10 video interface. ... The new class MyDataSet will have all the functionality of the DataSet class ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)