• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 79
  • Last Modified:

Interate through control only on a specified tabpage

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
SchoolTeacher54
Asked:
SchoolTeacher54
1 Solution
 
Miguel OzSoftware EngineerCommented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
can you show the code you currently have?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now