473,378 Members | 1,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Tab controls help

115 100+
Hi
I am using VB.net 2008 and i am using a tab control i have everything working accept a little thing thats bugging me. I have a tree view which updates both tabs but when i click on the tree view it always flicks back to tab one even if the user has the tab 2 selected. I want it so if the user has selected tab 2 then goes to click on the tree view it will update both tabs but stay on the same tab(tab 2 and not flick back to tab one). Has anyone got any ideas. i thought i could do this by using the
tabcontrol1.selectedtab.show()
am i correct and just putting this code in the wrong place?

cheers in advanced

Truez
Jul 7 '08 #1
3 815
Unfortunately I can't help you completely since I don't know the exact procedures. What I do know is that if you set a tab control in the VS properties menu(the menu to the bottom left by default on most web applications or forms) that it will automatically overwrite or just not care that you coded something else. Like I said I can't help you fully but that is what I know about it. You might try writing the code of it and setting the property values back to null making it so the code is running it completely.

Sorry if this doesn't help.
Jul 7 '08 #2
cloud255
427 Expert 256MB
If you are writing a web app, you should look at posting the selected form as a value and then selecting the tab based on that value.

If you are writing a windows app you might consider having (yes i will sin now) a global static variable which stores the tab index as an integer, then overwrite the OnClick event of the treeview control to select the appropriate tab.

good luck
Jul 8 '08 #3
truezplaya
115 100+
cheers for the help uy i managed to crack it soon after i posted by getting the tab names and then comparing it to the selected tab name and then got it to update them both accordingly depending upon which one the user had selected

cheers
Truez
Jul 8 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Chris Thunell | last post by:
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page...
0
by: Mike Collins | last post by:
I someone can please help, I am about at an end in trying to figure this out. I am adding some dynamic controls to my page (I found out that I was supposed to be doing that in the oninit event,...
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.