Solved

Interate through control only on a specified tabpage

Posted on 2016-08-12
2
68 Views
Last Modified: 2016-08-30
I have a VB Windows form. The form has a tab container. On TabPage5 I have a series of controls (textbox and combobox) that I would like to iterate through and check the property of the TAG property. For instance if the tag is "R" I'll check that the field has an acceptable value and if not set enabled.false on the save button to not allow the SAVE command on that tab.

I've worked out  how to do this on the entire form but not just a tabpage.

The goal is I need to validate the control one tab at a time and take action accordingly.

Help?
0
Comment
Question by:SchoolTeacher54
[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 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 41754448
Please use the Controls property of the selected tab page instance,  in your case you could loop this Controls property to find the required child control.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 41754823
can you show the code you currently have?
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

636 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