Solved

Tabitem re-order depending on login

Posted on 2009-06-30
2
185 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
Comment Utility
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
Comment Utility
The following code worked...
tabControl.Items.Remove(item);
tabControl.Items.Insert(p, item)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

10 Experts available now in Live!

Get 1:1 Help Now