Re: TabControl page order
From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 02/09/04
- Next message: jayderk: "A situation you probably haven't see to often... Deleting application"
- Previous message: Chris J.T. Auld [MVP]: "Re: Scripting in .net CF"
- In reply to: Bob Trabucco: "Re: TabControl page order"
- Next in thread: Bob Trabucco: "Re: TabControl page order"
- Reply: Bob Trabucco: "Re: TabControl page order"
- Messages sorted by: [ date ] [ thread ]
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 > > > > > > > > > > > >
- Next message: jayderk: "A situation you probably haven't see to often... Deleting application"
- Previous message: Chris J.T. Auld [MVP]: "Re: Scripting in .net CF"
- In reply to: Bob Trabucco: "Re: TabControl page order"
- Next in thread: Bob Trabucco: "Re: TabControl page order"
- Reply: Bob Trabucco: "Re: TabControl page order"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|