Solved

Interate through control only on a specified tabpage

Posted on 2016-08-12
2
62 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
2 Comments
 
LVL 35

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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