Solved

tabcontrol: Problem accessing textboxes on other tabpages

Posted on 2004-09-17
2
284 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

632 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