Solved

Tabitem re-order depending on login

Posted on 2009-06-30
2
186 Views
Last Modified: 2013-11-27
Is there a way to re-order the tabitems in my application based upon login, This is an XBAP application..

On the design page we can right click on the tabitem and select order and one of the bring forward or send back etc.. but I would like to re-order tabitems programatically... Is this possible? This is pretty critical for my application so any help is greatly appreciated..
Thanks!
0
Comment
Question by:Pavithra_S
2 Comments
 
LVL 5

Accepted Solution

by:
Opalelement earned 250 total points
ID: 24756644
I don't know about XBAP as I have never used it, but I do know that in Visual C# you can do tabControl.TabPages.RemoveAt and InsertAt, meaning you could move it by deleting and then reinserting
0
 

Author Closing Comment

by:Pavithra_S
ID: 31598462
The following code worked...
tabControl.Items.Remove(item);
tabControl.Items.Insert(p, item)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now