Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

tabcontrol: Problem accessing textboxes on other tabpages

Posted on 2004-09-17
2
Medium Priority
?
289 Views
Last Modified: 2011-09-20
I have a VB.Net MDI project with a child form that has a tabcontrol and serveral tabpages on it.  I have textboxes and datagrids bound to several datasets.  I am having a problem getting information that is located in textboxes on other tabpages.  After doing a lot of searching I have read that the solution is to go through all of the tabpages to make them active (aware?) at load time.  Will this work even if there is nothing bound at load time?  Is there a better answer?

the code I have used to step through the tabpages goes like this:
tabOrderEntry.SelectedTab = tabCustomer
tabOrderEntry.SelectedTab = tabBillTo
tabOrderEntry.SelectedTab = tabOrder  
tabOrderEntry.SelectedTab = tabItems  Etc.

Is there a way to make all of the textboxes from all of the tabpages accessable at the same time, or a way to reference them?

Thanks for any help.

Bob C
0
Comment
Question by:RRCaldwell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1500 total points
ID: 12091608
The problem is that TabPages are not fully loaded until they are visible to save time and resources.

Your workaround is the one I know!
0
 

Author Comment

by:RRCaldwell
ID: 12095302
This answers my Suspicions.

I did find that I could reference items by using the systax:

Me.tabOrderInfo.Controls.Item(51).Text.ToString

This will get the information from the other TabPage when it would not using:

txtInvoiceNo.Text.ToString

I will move up my SelectedTab. SelectedTab, SelectedTab further in my code and see if that cleans up my issues.

Thanks,

Bob C  


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

715 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